Build with -Wfloat-conversion + fix all warnings
This commit is contained in:
parent
17c459e384
commit
a919774fe4
38 changed files with 199 additions and 203 deletions
|
@ -59,6 +59,11 @@ function(SDL_AddCommonCompilerFlags TARGET)
|
|||
sdl_target_compile_option_all_languages(${TARGET} "-Wundef")
|
||||
endif()
|
||||
|
||||
check_c_compiler_flag(-Wfloat-conversion HAVE_GCC_WFLOAT_CONVERSION)
|
||||
if(HAVE_GCC_WFLOAT_CONVERSION)
|
||||
sdl_target_compile_option_all_languages(${TARGET} "-Wfloat-conversion")
|
||||
endif()
|
||||
|
||||
check_c_compiler_flag(-fno-strict-aliasing HAVE_GCC_NO_STRICT_ALIASING)
|
||||
if(HAVE_GCC_NO_STRICT_ALIASING)
|
||||
sdl_target_compile_option_all_languages(${TARGET} "-fno-strict-aliasing")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue