Enable a few more GCC warnings

This commit is contained in:
def 2019-04-09 21:42:24 +02:00
parent d4d6ab681d
commit fe432b8ae4
2 changed files with 5 additions and 2 deletions

View file

@ -168,6 +168,11 @@ if(NOT MSVC)
add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-missing-field-initializers) add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-missing-field-initializers)
add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wformat=2) # Warn about format strings. add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wformat=2) # Warn about format strings.
add_c_compiler_flag_if_supported(OUR_FLAGS_DEP -Wno-implicit-function-declaration) add_c_compiler_flag_if_supported(OUR_FLAGS_DEP -Wno-implicit-function-declaration)
add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wduplicated-cond)
add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wduplicated-branches)
add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wlogical-op)
add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wrestrict)
add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wuseless-cast)
endif() endif()
if(NOT MSVC) if(NOT MSVC)

View file

@ -1058,8 +1058,6 @@ int CMenus::Render()
RenderServerControl(MainView); RenderServerControl(MainView);
else if(m_GamePage == PAGE_SETTINGS) else if(m_GamePage == PAGE_SETTINGS)
RenderSettings(MainView); RenderSettings(MainView);
else if(m_GamePage == PAGE_GHOST)
RenderGhost(MainView);
} }
else if(g_Config.m_UiPage == PAGE_NEWS) else if(g_Config.m_UiPage == PAGE_NEWS)
RenderNews(MainView); RenderNews(MainView);