Regression: new compiler warning due to blind usage of gcc-only "-std=c99" compiler flag
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Since ParaView's HDF5 was merged into VTK in Dec 2010, a new compiler warning appeared when building VTK with clang:
clang: warning: argument unused during compilation: '-std=c99'
This comes from Utilities/vtkhdf5/CMakeLists.txt
#-----------------------------------------------------------------------------
Compiler specific flags : Shouldn't there be compiler tests for these
#----------------------------------------------------------------------------- IF (NOT WIN32) SET (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS} -std=c99 - fomit-frame-pointer -finline-functions -fno-common") ENDIF (NOT WIN32)
The comment is correct. "-std=c99" should not be blindly passed to any compiler, only to gcc.