aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-09-17 11:56:52 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-09-17 11:56:52 +0200
commit887d196d34a55722b7637cd728e43e226866b5d2 (patch)
treeee9e8e4e34721a4a7eaa9e99855dee9fc4cee8fc /CMakeLists.txt
parentab09ba477afda22d6c7315b27054b86c2875fcd0 (diff)
downloadsynthpod-887d196d34a55722b7637cd728e43e226866b5d2.tar.xz
fix warnings reported by -Wshadow.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9a4b157..5d5e1c94 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,7 +27,12 @@ set(SYNTHPOD_VERSION "${SYNTHPOD_MAJOR_VERSION}.${SYNTHPOD_MINOR_VERSION}.${SYNT
add_definitions("-DSYNTHPOD_VERSION=\"${SYNTHPOD_VERSION}\"")
set(CMAKE_C_FLAGS "-std=gnu11 -Wall -ffast-math -fvisibility=hidden ${CMAKE_C_FLAGS}")
-set(CMAKE_CXX_FLAGS "-std=gnu++11 -Wall -ffast-math -fvisibility=hidden ${CMAKE_CXX_FLAGS}")
+set(CMAKE_C_FLAGS "-Wshadow ${CMAKE_C_FLAGS}")
+#set(CMAKE_C_FLAGS "-Wshadow -Wimplicit-function-declaration -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes ${CMAKE_C_FLAGS}")
+
+set(CMAKE_CXX_FLAGS "-std=gnu++11 -Wextra -ffast-math -fvisibility=hidden ${CMAKE_CXX_FLAGS}")
+set(CMAKE_CXX_FLAGS "-Wshadow -Wredundant-decls -Weffc++ ${CMAKE_CXX_FLAGS}")
+
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-z,nodelete ${CMAKE_MODULE_LINKER_FLAGS}")
# options