[libcxx] r299385 - suppress GCC warning about noexcept functions changing mangling
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 3 16:06:31 PDT 2017
On 3 April 2017 at 13:53, Eric Fiselier via cfe-commits <
cfe-commits at lists.llvm.org> wrote:
> Author: ericwf
> Date: Mon Apr 3 15:53:15 2017
> New Revision: 299385
>
> URL: http://llvm.org/viewvc/llvm-project?rev=299385&view=rev
> Log:
> suppress GCC warning about noexcept functions changing mangling
>
Clang also has such a warning; can you give an example of a case that GCC
warns on and Clang does not?
Modified:
> libcxx/trunk/CMakeLists.txt
> libcxx/trunk/utils/libcxx/test/config.py
>
> Modified: libcxx/trunk/CMakeLists.txt
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/
> CMakeLists.txt?rev=299385&r1=299384&r2=299385&view=diff
> ============================================================
> ==================
> --- libcxx/trunk/CMakeLists.txt (original)
> +++ libcxx/trunk/CMakeLists.txt Mon Apr 3 15:53:15 2017
> @@ -466,7 +466,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "
> elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
> add_compile_flags_if_supported(
> -Wno-literal-suffix
> - -Wno-c++14-compat)
> + -Wno-c++14-compat
> + -Wno-noexcept-type)
> endif()
> if (LIBCXX_ENABLE_WERROR)
> add_compile_flags_if_supported(-Werror)
>
> Modified: libcxx/trunk/utils/libcxx/test/config.py
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/
> libcxx/test/config.py?rev=299385&r1=299384&r2=299385&view=diff
> ============================================================
> ==================
> --- libcxx/trunk/utils/libcxx/test/config.py (original)
> +++ libcxx/trunk/utils/libcxx/test/config.py Mon Apr 3 15:53:15 2017
> @@ -813,6 +813,7 @@ class Configuration(object):
> self.cxx.addWarningFlagIfSupported('-Wno-pessimizing-move')
> self.cxx.addWarningFlagIfSupported('-Wno-c++11-extensions')
> self.cxx.addWarningFlagIfSupported('-Wno-user-defined-literals')
> + self.cxx.addWarningFlagIfSupported('-Wno-noexcept-type')
> # These warnings should be enabled in order to support the MSVC
> # team using the test suite; They enable the warnings below and
> # expect the test suite to be clean.
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170403/0f232ef7/attachment.html>
More information about the cfe-commits
mailing list