Add GCC warnings from autotools

This commit is contained in:
Alex Mayfield 2018-05-31 19:14:57 -04:00
parent dc054603a1
commit f8ffe42a61

View file

@ -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)