From: kristina Date: Fri, 31 Jul 2020 17:44:02 +0000 (+0100) Subject: [libunwind] Add -Wno-suggest-override to CMakeLists.txt. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46591b95362325d262ca29ce13e7b5ddda624bc8;p=platform%2Fupstream%2Fllvm.git [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. --- 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)