[libc++] Disable -Wattributes in GCC

Currently GCC produces lots of warnings. Most of them are `-Wattributes`, but these warnings are completly ignored by everybody. So let's disable -Wattributes and make the output cleaner.

Reviewed By: ldionne, #libc

Spies: libcxx-commits, mgorny

Differential Revision: https://reviews.llvm.org/D119140
This commit is contained in:
Nikolas Klauser 2022-02-07 16:07:01 +01:00
parent be1cca1b0d
commit 0e7d7fe912
1 changed files with 1 additions and 0 deletions

View File

@ -623,6 +623,7 @@ function(cxx_add_warning_flags target)
endif()
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
target_add_compile_flags_if_supported(${target} PRIVATE
-Wno-attributes
-Wno-literal-suffix
-Wno-c++14-compat
-Wno-noexcept-type