use -Werror by default in debug mode builds
[supertux.git] / tools / miniswig / CMakeLists.txt
index 93607a0..7023334 100644 (file)
@@ -24,7 +24,8 @@ PROJECT(MINISWIG)
 ## add additional compiler switches
 
 ADD_DEFINITIONS(-include ${CMAKE_BINARY_DIR}/config.h)
-REMOVE_DEFINITIONS(-Wall)
+# the autogenerated bison/flex is not warning free usually
+REMOVE_DEFINITIONS(-Wall -W)
 
 ## Include paths to make generated files work