[llvm] r221913 - Use -Wcast-qual in cmake builds, not only autoconfo ones.

Alexey Samsonov vonosmas at gmail.com
Thu Nov 13 13:03:32 PST 2014


Thanks! FYI this reported quite a number of warnings in compiler-rt build.
I will take a look at them now.

On Thu, Nov 13, 2014 at 11:45 AM, Roman Divacky <rdivacky at freebsd.org>
wrote:

> Author: rdivacky
> Date: Thu Nov 13 13:45:27 2014
> New Revision: 221913
>
> URL: http://llvm.org/viewvc/llvm-project?rev=221913&view=rev
> Log:
> Use -Wcast-qual in cmake builds, not only autoconfo ones.
>
> Modified:
>     llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
>
> Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=221913&r1=221912&r2=221913&view=diff
>
> ==============================================================================
> --- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
> +++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Thu Nov 13 13:45:27
> 2014
> @@ -276,6 +276,7 @@ if( MSVC )
>  elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
>    if (LLVM_ENABLE_WARNINGS)
>      append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS
> CMAKE_CXX_FLAGS)
> +    append("-Wcast-qual" CMAKE_CXX_FLAGS)
>
>      # Turn off missing field initializer warnings for gcc to avoid noise
> from
>      # false positives with empty {}. Turn them on otherwise (they're off
> by
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141113/7e7d29e0/attachment.html>


More information about the llvm-commits mailing list