diff --git a/CMakeLists.txt b/CMakeLists.txt index 072ad64f5d..4d169393e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,6 +197,7 @@ if(NOT MSVC) check_and_add_flag(LOGICAL_OP -Wlogical-op) check_and_add_flag(SHADOW -Wshadow) check_and_add_flag(INIT_SELF -Winit-self) + check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations) endif(NOT MSVC) # gcc uses some optimizations which might break stuff without this flag