I also had the same warnings with clang in the past. The way I resolved it was to add "-Werror=gnu" to the c++ compiler flags **and** set VXL_UPDATE_CONFIGURATION to true following by re-running cmake. With this flag, the try-compile test will fail and set VCL_CAN_STATIC_CONST_INIT_FLOAT to 0, which eliminates all of these warnings.
On Wed, 6 Jun 2012 00:42:51 +0800, YULianqing said:
So I downloaded and tried to use cmake to do an out-of-source build. After I 'configure', with default options, it gives an error: "bvpl_octree using pthreads". That's not a very helpful message... What does it mean?>Dear all, I'm glad to introduce the second release candidate (RC2) of
>VXL 1.17.0 for you to test. The main change to RC2 compared to RC1 is
>the inclusion of dcrispell's fix to remove cyclic dependency issue in
>the case of shared libary build. Please feel free to give me comments
Nevertheless, I proceeded to 'generate' and compile (with clang).
I get a million warnings like this:
warning: in-class initializer for static data member of type 'const double' is a GNU extension