[Lldb-commits] [lldb] r179712 - Silence some warnings about deprecated declarations

Daniel Malea daniel.malea at intel.com
Wed Apr 17 12:27:32 PDT 2013


Author: dmalea
Date: Wed Apr 17 14:27:31 2013
New Revision: 179712

URL: http://llvm.org/viewvc/llvm-project?rev=179712&view=rev
Log:
Silence some warnings about deprecated declarations
- auto_ptr is one example of this


Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=179712&r1=179711&r2=179712&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Wed Apr 17 14:27:31 2013
@@ -93,6 +93,13 @@ else()
   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(





More information about the lldb-commits mailing list