From 46591b95362325d262ca29ce13e7b5ddda624bc8 Mon Sep 17 00:00:00 2001 From: kristina Date: Fri, 31 Jul 2020 18:44:02 +0100 Subject: [PATCH] [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. --- libunwind/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt index 4606360..8419d85 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) -- 2.7.4