[Lldb-commits] [lldb] r184335 - The 'register' keyword is now deprecated in C++11, so ignore the warning when compiling lldb with clang since python headers commonly use the keyword.

Andy Gibbs andyg1001 at hotmail.co.uk
Wed Jun 19 12:06:44 PDT 2013


Author: andyg
Date: Wed Jun 19 14:06:44 2013
New Revision: 184335

URL: http://llvm.org/viewvc/llvm-project?rev=184335&view=rev
Log:
The 'register' keyword is now deprecated in C++11, so ignore the warning when compiling lldb with clang since python headers commonly use the keyword.

Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=184335&r1=184334&r2=184335&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Wed Jun 19 14:06:44 2013
@@ -118,6 +118,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
   )
 endif()
 
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+  add_lldb_definitions(
+    -Wno-deprecated-register
+  )
+endif()
+
 # Disable MSVC warnings
 if( MSVC )
   add_lldb_definitions(





More information about the lldb-commits mailing list