forked from OSchip/llvm-project
[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:
parent
be1cca1b0d
commit
0e7d7fe912
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue