MantisBT - VTK
View Issue Details
0011952VTK(No Category)public2011-03-09 12:232016-08-12 09:55
Sean McBride 
Dave DeMarle 
normalminoralways
closedmoved 
6.0.0 
 
TBD
incorrect functionality
0011952: Regression: new compiler warning due to blind usage of gcc-only "-std=c99" compiler flag
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.
No tags attached.
Issue History
2011-03-09 12:23Sean McBrideNew Issue
2011-03-09 12:23Sean McBrideStatusbacklog => tabled
2011-03-09 12:23Sean McBrideAssigned To => David Partyka
2011-04-19 11:00Sean McBrideNote Added: 0026227
2011-04-21 14:44David PartykaNote Added: 0026238
2011-05-04 10:37Sean McBrideNote Added: 0026432
2013-07-22 20:33Dave DeMarleStatusbacklog => expired
2013-07-22 20:33Dave DeMarleNote Added: 0031286
2013-07-24 18:03Sean McBrideProject => TBD
2013-07-24 18:03Sean McBrideType => incorrect functionality
2013-07-24 18:03Sean McBrideNote Added: 0031331
2013-07-24 18:03Sean McBrideAssigned ToDavid Partyka => Dave DeMarle
2013-07-24 18:03Sean McBrideProduct Version => 6.0.0
2016-08-12 09:55Kitware RobotNote Added: 0037223
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved

Notes
(0026227)
Sean McBride   
2011-04-19 11:00   
Note, when building with clang, if *no* warning flags are specified, this is the only warning nonetheless generated.
(0026238)
David Partyka   
2011-04-21 14:44   
Hi Sean, I just checked in a potential fix to vtk master. Can you please give it a try and let me know. Thanks!
(0026432)
Sean McBride   
2011-05-04 10:37   
hmmm, the warning still appears on my dashboard:

http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=1087878 [^]
(0031286)
Dave DeMarle   
2013-07-22 20:33   
Dave P no longer works on the project. If these old issues still exist in 6.0.0, reopen them and assign to Dave DeMarle
(0031331)
Sean McBride   
2013-07-24 18:03   
Issue still exists, but has workaround.
(0037223)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.