Skip to content

Commit 3f00bd7

Browse files
simpkinsfacebook-github-bot
authored andcommitted
suppress compiler errors about noexcept name mangling changes
Summary: Stop gcc 7+ from complaining about the fact that function name mangling of noexcept functions changes between the C++14 and C++17 dialect options. Note that there are still a number of other compiler warnings emitted about signed/unsigned comparison mismatches and unused function parameters. However those are treated simply as warnings rather than errors and do not cause the build to fail. Reviewed By: phoad Differential Revision: D10380761 fbshipit-source-id: eb2c2da2b12e284ec81256f08959826862ac6c50
1 parent d509d91 commit 3f00bd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ set(CMAKE_CXX_STANDARD 14)
157157

158158
# Common configuration for all build modes.
159159
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
160+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-noexcept-type")
160161
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual")
161162
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
162163

0 commit comments

Comments
 (0)