mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 15:10:49 +00:00
Disable unused local typedefs warning
This triggers on gcc 4.8.4 for compile time asserts inside of functions Fixes https://github.com/libsdl-org/SDL/issues/7732
This commit is contained in:
parent
a9c988b2a9
commit
65180804c4
1 changed files with 5 additions and 0 deletions
|
|
@ -675,6 +675,11 @@ if(USE_GCC OR USE_CLANG OR USE_INTELCC OR USE_QCC)
|
|||
target_compile_options(sdl-global-options INTERFACE "-Wshadow")
|
||||
endif()
|
||||
|
||||
check_c_compiler_flag(-Wunused-local-typedefs HAVE_GCC_WUNUSED_LOCAL_TYPEDEFS)
|
||||
if(HAVE_GCC_WUNUSED_LOCAL_TYPEDEFS)
|
||||
target_compile_options(sdl-global-options INTERFACE "-Wno-unused-local-typedefs")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
cmake_push_check_state()
|
||||
# FIXME: don't use deprecated declarations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue