Author: kristina Date: 2020-07-31T19:04:13+01:00 New Revision: 46591b95362325d262ca29ce13e7b5ddda624bc8
URL: https://github.com/llvm/llvm-project/commit/46591b95362325d262ca29ce13e7b5ddda624bc8 DIFF: https://github.com/llvm/llvm-project/commit/46591b95362325d262ca29ce13e7b5ddda624bc8.diff LOG: [libunwind] Add -Wno-suggest-override to CMakeLists.txt. Set -Wno-suggest-override where such warning is provided by the compiler when building libunwind, alongside libcxx and libcxxabi, using recent Clang. This extends behavior introduced in 77e0e9e17daf0865620abcd41f692ab0642367c4 to libunwind, avoiding a large amount of warnings during builds. See D84126 for the original patch. Added: Modified: libunwind/CMakeLists.txt Removed: ################################################################################ diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt index 4606360f07ab7..8419d851ab7f4 100644 --- a/libunwind/CMakeLists.txt +++ b/libunwind/CMakeLists.txt @@ -271,6 +271,8 @@ add_compile_flags_if_supported(-Wunused-variable) add_compile_flags_if_supported(-Wwrite-strings) add_compile_flags_if_supported(-Wundef) +add_compile_flags_if_supported(-Wno-suggest-override) + if (LIBUNWIND_ENABLE_WERROR) add_compile_flags_if_supported(-Werror) add_compile_flags_if_supported(-WX) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits