Fix gcc compiler warnings
reg. is deprecated [-Wdeprecated-declarations]
This commit is contained in:
parent
15127603d7
commit
372170de04
|
@ -37,6 +37,8 @@ function(target_no_warning TARGET WNAME)
|
|||
set(MSVC_Warning /wd4244)
|
||||
elseif(WNAME STREQUAL "-Wno-deprecated")
|
||||
set(MSVC_Warning /wd4996)
|
||||
elseif(WNAME STREQUAL "-Wno-deprecated-declarations")
|
||||
set(MSVC_Warning /wd4996)
|
||||
elseif(WNAME STREQUAL "-Wno-conversion")
|
||||
set(MSVC_Warning /wd4244 /wd4267 /wd4245 /wd4057 /wd4334)
|
||||
elseif(WNAME STREQUAL "-Wno-cast-function-type")
|
||||
|
|
|
@ -93,3 +93,5 @@ if (OS_IS_LIN)
|
|||
endif()
|
||||
|
||||
include(SetupModule)
|
||||
|
||||
target_no_warning(${MODULE} -Wno-deprecated-declarations)
|
||||
|
|
1
thirdparty/fluidsynth/CMakeLists.txt
vendored
1
thirdparty/fluidsynth/CMakeLists.txt
vendored
|
@ -32,6 +32,7 @@ target_no_warning(${MODULE} -Wno-type-limits)
|
|||
target_no_warning(${MODULE} -Wno-unknown-pragmas)
|
||||
target_no_warning(${MODULE} -Wno-conversion)
|
||||
target_no_warning(${MODULE} -Wno-uninitialized)
|
||||
target_no_warning(${MODULE} -Wno-deprecated-declarations)
|
||||
target_no_warning(${MODULE} -WMSVC-no-translation-unit-is-empty)
|
||||
target_no_warning(${MODULE} -WMSVC-no-nonstandard-extension-used)
|
||||
target_no_warning(${MODULE} -WMSVC-no-assignment-within-conditional-expression)
|
||||
|
|
Loading…
Reference in a new issue