Silence some warnings about deprecated declarations
- auto_ptr is one example of this
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@179712 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa41e9a..e91c375 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,6 +93,13 @@
set(CMAKE_CXX_FLAGS "-std=c++11")
endif()
+# Disable Clang warnings
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ add_lldb_definitions(
+ -Wno-deprecated-declarations # Suppress "deprecated auto_ptr" warnings
+ )
+endif()
+
# Disable MSVC warnings
if( MSVC )
add_lldb_definitions(