message: Fix Xcode 13.3 and Clang 13.x compile errors
  Disable warnings
  Wunused-but-set-variable
  Wdeprecated-copy
diff: @@ -402,6 +402,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  list(APPEND warning_flags -Wno-unused-lambda-capture)
  endif()
  + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
  + list(APPEND warning_flags -Wno-unused-but-set-variable -Wno-deprecated-copy)
  + endif()
  +
  if(NOT RELEASE_MODE)
  list(APPEND warning_flags -Werror)
  endif()
  