summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-11-18 16:45:55 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-11-18 16:58:40 -0800
commit755afc0af8f9a448befb0802a045746dc72ef759 (patch)
tree8bfe01afed2334c541815389ecfeabc57a1707de /lldb
parent6a1b51282bc5728b77a80581a4aa38edcc9f95e5 (diff)
downloadbcm5719-llvm-755afc0af8f9a448befb0802a045746dc72ef759.tar.gz
bcm5719-llvm-755afc0af8f9a448befb0802a045746dc72ef759.zip
[CMake] Re-enable -Wno-gnu-anonymous-struct & -Wno-nested-anon-types.
We're checking for support but we're discarding the result. My best guess is that these warnings were disabled in the past. However, I don't see a reason to keep it that way.
Diffstat (limited to 'lldb')
-rw-r--r--lldb/cmake/modules/LLDBConfig.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 2a709f81981..5e45eb559d2 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -365,9 +365,15 @@ endif ()
check_cxx_compiler_flag("-Wno-gnu-anonymous-struct"
CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT)
+if (CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-anonymous-struct")
+endif ()
check_cxx_compiler_flag("-Wno-nested-anon-types"
CXX_SUPPORTS_NO_NESTED_ANON_TYPES)
+if (CXX_SUPPORTS_NO_NESTED_ANON_TYPES)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nested-anon-types")
+endif ()
# Disable MSVC warnings
if( MSVC )
OpenPOWER on IntegriCloud