diff options
| author | degasus <wickmarkus@web.de> | 2014-07-08 14:51:14 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2014-07-11 16:07:23 +0200 |
| commit | 9560ecdbec319ab4bb7aca2b8bd2e6ed27d0b7c0 (patch) | |
| tree | 9a559f83314b1f30939d462328d35ef46b97ec90 | |
| parent | 22e1aa5bb4a159d6d66a321f978917614aa36331 (diff) | |
CMake: warn on missing variable declarations
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
