[vtk-developers] [VTK 0011952]: Regression: new compiler warning due to blind usage of gcc-only "-std=c99" compiler flag

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 9 12:23:24 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11952 
====================================================================== 
Reported By:                Sean McBride
Assigned To:                David Partyka
====================================================================== 
Project:                    VTK
Issue ID:                   11952
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2011-03-09 12:23 EST
Last Modified:              2011-03-09 12:23 EST
====================================================================== 
Summary:                    Regression: new compiler warning due to blind usage
of gcc-only "-std=c99" compiler flag
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-09 12:23 Sean McBride   New Issue                                    
2011-03-09 12:23 Sean McBride   Status                   new => assigned     
2011-03-09 12:23 Sean McBride   Assigned To               => David Partyka   
======================================================================




More information about the vtk-developers mailing list