build: cmake: disable deprecated warning
since Seastar now deprecates a bunch of APIs which accept io_priority_class, we started to have deprecated warnings. before migrating to V7 API, let's disable this warning. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
This commit is contained in:
@@ -11,7 +11,11 @@ foreach(warning ${disabled_warnings})
|
||||
endif()
|
||||
endforeach()
|
||||
list(TRANSFORM _supported_warnings PREPEND "-Wno-")
|
||||
string(JOIN " " CMAKE_CXX_FLAGS "-Wall" "-Werror" ${_supported_warnings})
|
||||
string(JOIN " " CMAKE_CXX_FLAGS
|
||||
"-Wall"
|
||||
"-Werror"
|
||||
"-Wno-error=deprecated-declarations"
|
||||
${_supported_warnings})
|
||||
|
||||
function(default_target_arch arch)
|
||||
set(x86_instruction_sets i386 i686 x86_64)
|
||||
|
||||
Reference in New Issue
Block a user