Changeset 2907 for code/branches/questsystem5/cmake/BuildConfigGCC.cmake
- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/cmake/BuildConfigGCC.cmake
r2710 r2907 63 63 ADD_COMPILER_FLAGS("-Wno-sign-compare" GCC_NO_SYSTEM_HEADER_SUPPORT CACHE) 64 64 65 # For newer GCC (4.3 and above), don't display hundreds of annoying deprecated 66 # messages. Other versions don't seem to show any such warnings at all. 67 ADD_COMPILER_FLAGS("-Wno-deprecated" CXX) 68 65 69 # Increase warning level if requested 66 70 IF(EXTRA_COMPILER_WARNINGS) 67 REMOVE_COMPILER_FLAGS("-Wall" CACHE) 68 ADD_COMPILER_FLAGS("-Wextra --Wno-unused-parameter" CACHE) 71 ADD_COMPILER_FLAGS("-Wall -Wextra -Wno-unused-parameter" CACHE) 69 72 ELSE() 70 REMOVE_COMPILER_FLAGS("-Wextra - -Wno-unused-parameter" CACHE)73 REMOVE_COMPILER_FLAGS("-Wextra -Wno-unused-parameter" CACHE) 71 74 ADD_COMPILER_FLAGS("-Wall" CACHE) 72 75 ENDIF()
Note: See TracChangeset
for help on using the changeset viewer.