Skip to content

Commit

Permalink
Suppress -Wshadow-field and -Wc++2a-compat also
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Aug 15, 2019
1 parent 686339c commit 96cbba9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/cmake_modules/SetupCxxFlags.cmake
Expand Up @@ -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")
Expand Down

0 comments on commit 96cbba9

Please sign in to comment.