<div dir="ltr"><div>This change causes clang 3.2/3.3 to spew out the following warning a lot:<br><br>warning: unknown warning option '-Wno-deprecated-register'; did you mean '-Wno-deprecated'? [-Wunknown-warning-option]<br>
<br></div><div>Can't seem to build at all with clang 3.4 (but that may be my fault since I had to build 3.4 and couldn't use a binary release.)<br><br></div><div>Could this be wrapped in something like:<br><br>if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CLANG_VERSION_STRING VERSION_GREATER "3.3")<br>
</div><div><br></div><div>Assuming this -W works in clang 3.4?<br><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 12:06 PM, Andy Gibbs <span dir="ltr"><<a href="mailto:andyg1001@hotmail.co.uk" target="_blank">andyg1001@hotmail.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: andyg<br>
Date: Wed Jun 19 14:06:44 2013<br>
New Revision: 184335<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=184335&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=184335&view=rev</a><br>
Log:<br>
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.<br>
<br>
Modified:<br>
lldb/trunk/CMakeLists.txt<br>
<br>
Modified: lldb/trunk/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=184335&r1=184334&r2=184335&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=184335&r1=184334&r2=184335&view=diff</a><br>
==============================================================================<br>
--- lldb/trunk/CMakeLists.txt (original)<br>
+++ lldb/trunk/CMakeLists.txt Wed Jun 19 14:06:44 2013<br>
@@ -118,6 +118,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"<br>
)<br>
endif()<br>
<br>
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")<br>
+ add_lldb_definitions(<br>
+ -Wno-deprecated-register<br>
+ )<br>
+endif()<br>
+<br>
# Disable MSVC warnings<br>
if( MSVC )<br>
add_lldb_definitions(<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
</blockquote></div><br></div>