X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=15694b7552ef15428ac6000e85b1edc80634ae0b;hb=e52fb1f5bdee944734dc31a67cdbb25130313ee1;hp=fcab93fe7f32f43500ca4b35b1efa428a288b012;hpb=0006b7d038f744a29e4037e1ca54f5acf305aa8f;p=supertux.git diff --git a/CMakeLists.txt b/CMakeLists.txt index fcab93fe7..15694b755 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -258,10 +258,10 @@ IF(CMAKE_COMPILER_IS_GNUCC) # temporarily disabled: # -Wsign-conversion -Wfloat-equal -Wconversion -Wundef -Wshadow -Wswitch-default # -Wswitch-enum -Wsign-promo -Wcast-qual -Woverloaded-virtual -Wmissing-format-attribute - # -Wold-style-cast -Wpadded -Wabi + # -Wold-style-cast -Wpadded -Wabi -Winline -Wunsafe-loop-optimizations -Wstrict-overflow=5 # fails on MinGW: # -ansi - SET(SUPERTUX2_EXTRA_WARNING_FLAGS "-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 -Winline -Wunsafe-loop-optimizations -Wstrict-overflow=5 -Wformat=2 -Weffc++ -Wctor-dtor-privacy -Wstrict-null-sentinel -Wno-unused-parameter") + SET(SUPERTUX2_EXTRA_WARNING_FLAGS "-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 -Wformat=2 -Weffc++ -Wctor-dtor-privacy -Wstrict-null-sentinel -Wno-unused-parameter") ENDIF(WARNINGS) ENDIF(CMAKE_COMPILER_IS_GNUCC)