Changeset 6485

Show
Ignore:
Timestamp:
04/12/07 12:05:46
Author:
robert
Message:

From Eric Wing, fixes to the pedantic warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenThreads/trunk/CMakeLists.txt

    r6476 r6485  
    135135    # To be complete, we might also do GNUCC flags,  
    136136    # but everything here is C++ code. 
    137     # # FYI, if we do implement GNUCC, then -Wmissing-prototypes in another  
     137    # FYI, if we do implement GNUCC, then -Wmissing-prototypes in another  
    138138    # interesting C-specific flag. 
    139     SET(OPENTHREADS_AGGRESSIVE_WARNING_FLAGS "-Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wnewline-eof -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wshadow -Woverloaded-virtual") 
     139    # Also, there is a bug in gcc 4.0. Under C++, -pedantic will create 
     140    # errors instead of warnings for certain issues, including superfluous 
     141    # semicolons and commas, and the use of long long. -fpermissive seems 
     142    # to be the workaround.  
     143    SET(OPENTHREADS_AGGRESSIVE_WARNING_FLAGS "-Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wnewline-eof -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wshadow -Woverloaded-virtual -fpermissive") 
    140144ELSE(CMAKE_COMPILER_IS_GNUCXX) 
    141145    IF(MSVC)