The 'register' keyword is now deprecated in C++11, so ignore the warning when compili...
authorAndy Gibbs <andyg1001@hotmail.co.uk>
Wed, 19 Jun 2013 19:06:44 +0000 (19:06 +0000)
committerAndy Gibbs <andyg1001@hotmail.co.uk>
Wed, 19 Jun 2013 19:06:44 +0000 (19:06 +0000)
llvm-svn: 184335

lldb/CMakeLists.txt

index f9efaa9243affe5b02f4b9435811c81b1c947c69..3f0141b23c53e2c21d11098fdf186d6489459d85 100644 (file)
@@ -118,6 +118,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
   )\r
 endif()\r
 \r
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")\r
+  add_lldb_definitions(\r
+    -Wno-deprecated-register\r
+  )\r
+endif()\r
+\r
 # Disable MSVC warnings\r
 if( MSVC )\r
   add_lldb_definitions(\r