mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
CMake: warn on missing variable declarations
This commit is contained in:
@ -198,6 +198,7 @@ if(NOT MSVC)
|
|||||||
check_and_add_flag(SHADOW -Wshadow)
|
check_and_add_flag(SHADOW -Wshadow)
|
||||||
check_and_add_flag(INIT_SELF -Winit-self)
|
check_and_add_flag(INIT_SELF -Winit-self)
|
||||||
check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations)
|
check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations)
|
||||||
|
check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-declarations)
|
||||||
endif(NOT MSVC)
|
endif(NOT MSVC)
|
||||||
|
|
||||||
# gcc uses some optimizations which might break stuff without this flag
|
# gcc uses some optimizations which might break stuff without this flag
|
||||||
|
Reference in New Issue
Block a user