[libcxx-commits] [libcxx] 0e7d7fe - [libc++] Disable -Wattributes in GCC
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 7 11:00:17 PST 2022
Author: Nikolas Klauser
Date: 2022-02-07T19:58:25+01:00
New Revision: 0e7d7fe9122c312efc4e43888ec5ac85dae4b3cf
URL: https://github.com/llvm/llvm-project/commit/0e7d7fe9122c312efc4e43888ec5ac85dae4b3cf
DIFF: https://github.com/llvm/llvm-project/commit/0e7d7fe9122c312efc4e43888ec5ac85dae4b3cf.diff
LOG: [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
Added:
Modified:
libcxx/CMakeLists.txt
Removed:
################################################################################
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt
index 00fc9b317515..3c6bd0fbbd0d 100644
--- a/libcxx/CMakeLists.txt
+++ b/libcxx/CMakeLists.txt
@@ -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
More information about the libcxx-commits
mailing list