add -Wno-unused-parameter to disable warnings for unused parameters. This warning...
authorsik0fewl <sik0fewl@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 27 Feb 2010 21:16:23 +0000 (21:16 +0000)
committersik0fewl <sik0fewl@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 27 Feb 2010 21:16:23 +0000 (21:16 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6433 837edb03-e0f3-0310-88ca-d4d4e8b29345

CMakeLists.txt

index 6ea479f..cab36c1 100644 (file)
@@ -233,7 +233,7 @@ IF(CMAKE_COMPILER_IS_GNUCC)
     REMOVE_DEFINITIONS(-Werror)
   ENDIF(WERROR)
   IF(WARNINGS)
-    ADD_DEFINITIONS(-fdiagnostics-show-option -pedantic -Wno-long-long -Wcast-align -Wdisabled-optimization -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wredundant-decls -Wstack-protector -Wconversion -Wundef -Wsign-conversion -Wshadow -Winline -Wunsafe-loop-optimizations -Wfloat-equal -Wswitch-default -Wswitch-enum -Wcast-qual -Wsign-promo -Woverloaded-virtual -Wmissing-format-attribute -Wstrict-overflow=5 -Wformat=2-Weffc++ -Wabi -Wctor-dtor-privacy -Wstrict-null-sentinel)
+    ADD_DEFINITIONS(-fdiagnostics-show-option -pedantic -Wno-long-long -Wcast-align -Wdisabled-optimization -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wredundant-decls -Wstack-protector -Wconversion -Wundef -Wsign-conversion -Wshadow -Winline -Wunsafe-loop-optimizations -Wfloat-equal -Wswitch-default -Wswitch-enum -Wcast-qual -Wsign-promo -Woverloaded-virtual -Wmissing-format-attribute -Wstrict-overflow=5 -Wformat=2-Weffc++ -Wabi -Wctor-dtor-privacy -Wstrict-null-sentinel -Wno-unused-parameter)
     # -ansi fails in MinGW
     # still left:  -Wold-style-cast -Wpadded
   ENDIF(WARNINGS)