From 9560ecdbec319ab4bb7aca2b8bd2e6ed27d0b7c0 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 8 Jul 2014 14:51:14 +0200 Subject: [PATCH] CMake: warn on missing variable declarations --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d169393e1..956468e4c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -198,6 +198,7 @@ if(NOT MSVC) check_and_add_flag(SHADOW -Wshadow) check_and_add_flag(INIT_SELF -Winit-self) check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations) + check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-declarations) endif(NOT MSVC) # gcc uses some optimizations which might break stuff without this flag