<div dir="ltr">Thanks! FYI this reported quite a number of warnings in compiler-rt build. I will take a look at them now.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 11:45 AM, Roman Divacky <span dir="ltr"><<a href="mailto:rdivacky@freebsd.org" target="_blank">rdivacky@freebsd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rdivacky<br>
Date: Thu Nov 13 13:45:27 2014<br>
New Revision: 221913<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=221913&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=221913&view=rev</a><br>
Log:<br>
Use -Wcast-qual in cmake builds, not only autoconfo ones.<br>
<br>
Modified:<br>
    llvm/trunk/cmake/modules/HandleLLVMOptions.cmake<br>
<br>
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=221913&r1=221912&r2=221913&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=221913&r1=221912&r2=221913&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)<br>
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Thu Nov 13 13:45:27 2014<br>
@@ -276,6 +276,7 @@ if( MSVC )<br>
 elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )<br>
   if (LLVM_ENABLE_WARNINGS)<br>
     append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)<br>
+    append("-Wcast-qual" CMAKE_CXX_FLAGS)<br>
<br>
     # Turn off missing field initializer warnings for gcc to avoid noise from<br>
     # false positives with empty {}. Turn them on otherwise (they're off by<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>