mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
CMake: warn on missing declarations
This commit is contained in:
parent
326af097d9
commit
3ff1c538ee
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@ if(NOT MSVC)
|
||||||
check_and_add_flag(LOGICAL_OP -Wlogical-op)
|
check_and_add_flag(LOGICAL_OP -Wlogical-op)
|
||||||
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)
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue