forked from OSchip/llvm-project
suppress GCC warning about noexcept functions changing mangling
llvm-svn: 299385
This commit is contained in:
parent
1604f0773b
commit
e4bda11453
|
@ -466,7 +466,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||||
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||||
add_compile_flags_if_supported(
|
add_compile_flags_if_supported(
|
||||||
-Wno-literal-suffix
|
-Wno-literal-suffix
|
||||||
-Wno-c++14-compat)
|
-Wno-c++14-compat
|
||||||
|
-Wno-noexcept-type)
|
||||||
endif()
|
endif()
|
||||||
if (LIBCXX_ENABLE_WERROR)
|
if (LIBCXX_ENABLE_WERROR)
|
||||||
add_compile_flags_if_supported(-Werror)
|
add_compile_flags_if_supported(-Werror)
|
||||||
|
|
|
@ -813,6 +813,7 @@ class Configuration(object):
|
||||||
self.cxx.addWarningFlagIfSupported('-Wno-pessimizing-move')
|
self.cxx.addWarningFlagIfSupported('-Wno-pessimizing-move')
|
||||||
self.cxx.addWarningFlagIfSupported('-Wno-c++11-extensions')
|
self.cxx.addWarningFlagIfSupported('-Wno-c++11-extensions')
|
||||||
self.cxx.addWarningFlagIfSupported('-Wno-user-defined-literals')
|
self.cxx.addWarningFlagIfSupported('-Wno-user-defined-literals')
|
||||||
|
self.cxx.addWarningFlagIfSupported('-Wno-noexcept-type')
|
||||||
# These warnings should be enabled in order to support the MSVC
|
# These warnings should be enabled in order to support the MSVC
|
||||||
# team using the test suite; They enable the warnings below and
|
# team using the test suite; They enable the warnings below and
|
||||||
# expect the test suite to be clean.
|
# expect the test suite to be clean.
|
||||||
|
|
Loading…
Reference in New Issue