shithub: choc

Download patch

ref: f8ffe42a61cc53719bd36d58d309d495ad3f323b
parent: dc054603a1f95f03ea9f6a7b79cda23032c5c2a6
author: Alex Mayfield <alexmax2742@gmail.com>
date: Thu May 31 15:14:57 EDT 2018

Add GCC warnings from autotools

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,9 @@
 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)