From 8ab2332854fbace5f8bf90f7b543527367bf29d8 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 28 Jan 2013 20:50:22 -0600 Subject: [PATCH] Enabled more warnings. Get to work! --- CMakeLists.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8efd8c495d..990ee60a1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,21 @@ add_definitions(-msse2) # Enabling all warnings in MSVC spams too much if(NOT MSVC) - add_definitions(-Wall) + add_definitions(-Wall +# TODO: would like these but they produce overwhelming amounts of warnings +# -Wextra +# -Wmissing-field-initializers +# -Wswitch-default +# -Wfloat-equal +# -Wconversion +# -Wzero-as-null-pointer-constant + -Wtype-limits + -Wsign-compare + -Wignored-qualifiers + -Wuninitialized + -Wlogical-op + -Wshadow + -Winit-self) endif(NOT MSVC) # gcc uses some optimizations which might break stuff without this flag