behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

[PATCH] Box2D headers do not compile with -pedantic on G++ 4.4.3 #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Box2D includes commas at the end of some enumerated types, which is not allowed 
by G++'s -pedantic mode. As these are in header files, it also prevents 
compilation of user (i.e. my :) code using -pedantic if GCC decides that the 
Box2D files aren't system headers, which they are not under my current build 
scheme.

Attached is a patch that removes the comma. There's only a few, and it's the 
only problem I ran into trying to compile my code with -pedantic.

Original issue reported on code.google.com by joe.wreschnig@gmail.com on 21 Sep 2010 at 8:25

Attachments:

GoogleCodeExporter commented 9 years ago
I removed all trailing commas.

Original comment by erinca...@gmail.com on 27 Mar 2011 at 7:15