Trying to build with -Wall gives a LOT of warnings

Usually I compile all my projects with the -Wall option of g++, as the warnings are often quite use full. Unfortunately Box2D itself produces so many warnings, that compiling with this option it is almost useless for debugging my own code.

Most of the warnings are of the form
Code:
./src/Box2D/Include/../Source/Dynamics/b2WorldCallbacks.h: In member function ‘virtual void b2ContactListener::Add(const b2ContactPoint*)’:
./src/Box2D/Include/../Source/Dynamics/b2WorldCallbacks.h:95: warning: statement has no effect

so it should be easy to fix them.

Would help a lot when working with Box2D!
That is due to

Code:
B2_NOT_USED(point);


I put that code in there so that VC++ wouldn't produce a warning about an unused variable. How should this be done in g++?
in gcc/g++ the format is

int x __attribute__ ((unused))

#define B2_NOT_USED(x) x __attribute__ ((unused))

http://gcc.gnu.org/onlinedocs/gcc/Varia ... butes.html
This attribute, attached to a variable, means that the variable is meant to be possibly unused. GCC will not produce a warning for this variable.
Both VC++ (I've only checked with 2003) and g++ also support just not naming the variable that is going unused to suppress the warning.
Code:
int foo(int)
{
  return 3;
}

Original thread: https://box2d.org/forum/viewtopic.php?t=1207