diff --git a/cpp/cmake_modules/SetupCxxFlags.cmake b/cpp/cmake_modules/SetupCxxFlags.cmake index 5e6549a6cae52..09d5bf2f2d455 100644 --- a/cpp/cmake_modules/SetupCxxFlags.cmake +++ b/cpp/cmake_modules/SetupCxxFlags.cmake @@ -173,7 +173,8 @@ if("${BUILD_WARNING_LEVEL}" STREQUAL "CHECKIN") # ARROW-6259: Flatbuffers generates code with superfluous semicolons, so # we suppress this warning for now. See upstream bug report # https://github.com/google/flatbuffers/issues/5482 - set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wno-extra-semi-stmt") + set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wno-extra-semi-stmt \ +-Wno-shadow-field -Wno-c++2a-compat") endif() set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wno-unknown-warning-option")