|
From: Kevin G. <go...@gm...> - 2007-09-28 05:24:24
|
Hello. I'm compiling a VR Juggler app against GMTL version 0.5.4 using g++ version 4.1.3, and I'm getting the following warnings: /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float gmtl::Math::fastInvSqrt(float)': /usr/local/include/gmtl-0.5.4/gmtl/Math.h:382: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h:384: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float gmtl::Math::fastInvSqrt2(float)': /usr/local/include/gmtl-0.5.4/gmtl/Math.h:392: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h:394: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float gmtl::Math::fastInvSqrt3(float)': /usr/local/include/gmtl-0.5.4/gmtl/Math.h:403: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h:405: warning: dereferencing type-punned pointer will break strict-aliasing rules Is there a way to disable this particular warning for this particular GMTL header file (assuming that it's safe to ignore the warning)? Thanks! ---- Kevin Godby |