We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c50e4b2 commit 98bed62Copy full SHA for 98bed62
CMakeLists.txt
@@ -1085,8 +1085,10 @@ if(SDL_LIBC)
1085
cmake_push_check_state()
1086
if(MSVC)
1087
string(APPEND CMAKE_REQUIRED_FLAGS " -we4244 -WX") # 'conversion' conversion from 'type1' to 'type2', possible loss of data
1088
- else()
+ elseif(HAVE_GCC_WFLOAT_CONVERSION)
1089
string(APPEND CMAKE_REQUIRED_FLAGS " -Wfloat-conversion -Werror")
1090
+ else()
1091
+ string(APPEND CMAKE_REQUIRED_FLAGS " -Wconversion -Werror")
1092
endif()
1093
foreach(math_fn isinf isnan)
1094
string(TOUPPER "${math_fn}" MATH_FN)
0 commit comments