commit f8ffe42a61cc53719bd36d58d309d495ad3f323b
Author: Alex Mayfield <alexmax2742@gmail.com>
AuthorDate: Thu May 31 19:14:57 2018 -0400
Commit: Alex Mayfield <alexmax2742@gmail.com>
CommitDate: Thu May 31 19:14:57 2018 -0400
Add GCC warnings from autotools
---
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c304b011..cd026453 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,9 @@ set(PACKAGE_LICENSE "GNU General Public License, version 2")
if(MSVC)
add_definitions("/D_CRT_SECURE_NO_WARNINGS" "/D_CRT_SECURE_NO_DEPRECATE"
"/D_CRT_NONSTDC_NO_DEPRECATE")
+else()
+ add_compile_options("-Wall" "-Wdeclaration-after-statement"
+ "-Wredundant-decls")
endif()
find_package(SDL2 2.0.1)