Add GCC warnings from autotools
This commit is contained in:
parent
dc054603a1
commit
f8ffe42a61
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ set(PACKAGE_LICENSE "GNU General Public License, version 2")
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_definitions("/D_CRT_SECURE_NO_WARNINGS" "/D_CRT_SECURE_NO_DEPRECATE"
|
add_definitions("/D_CRT_SECURE_NO_WARNINGS" "/D_CRT_SECURE_NO_DEPRECATE"
|
||||||
"/D_CRT_NONSTDC_NO_DEPRECATE")
|
"/D_CRT_NONSTDC_NO_DEPRECATE")
|
||||||
|
else()
|
||||||
|
add_compile_options("-Wall" "-Wdeclaration-after-statement"
|
||||||
|
"-Wredundant-decls")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(SDL2 2.0.1)
|
find_package(SDL2 2.0.1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue