msvc 14 generates new warnings that occurr in just about every llvm source file

Aaron Ballman aaron at aaronballman.com
Fri Aug 1 05:28:07 PDT 2014


> From bffa68240130a2cef732d24be259e9523266e67c Mon Sep 17 00:00:00 2001
> From: Oliver Schneider <oliver.schneider at kit.edu>
> Date: Fri, 1 Aug 2014 11:46:32 +0200
> Subject: [PATCH] ignore new verbose warnings on MSVC 14
>
> ---
>  cmake/modules/HandleLLVMOptions.cmake | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
> index 8258512..2c6b56d 100644
> --- a/cmake/modules/HandleLLVMOptions.cmake
> +++ b/cmake/modules/HandleLLVMOptions.cmake
> @@ -245,6 +245,9 @@ if( MSVC )
>      -wd4345 # Suppress 'behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized'
>      -wd4351 # Suppress 'new behavior: elements of array 'array' will be default initialized'
>      -wd4355 # Suppress ''this' : used in base member initializer list'
> +    -wd4456 # Suppress 'declaration of 'variable_name' hides previous local declaration'
> +    -wd4457 # Suppress 'declaration of 'variable_name' hides function parameter'

These make sense to suppress, I think.

> +    -wd4458 # Suppress 'declaration of 'variable_name' hides class member'

This one has me slightly worried. How often does this warning happen
in practice?

>      -wd4503 # Suppress ''identifier' : decorated name length exceeded, name was truncated'
>      -wd4624 # Suppress ''derived class' : destructor could not be generated because a base class destructor is inaccessible'
>      -wd4722 # Suppress 'function' : destructor never returns, potential memory leak
> --
> 1.8.5.2.msysgit.0
>

Thanks!

~Aaron

On Fri, Aug 1, 2014 at 6:48 AM, oliver <llvm6549 at oli-obk.de> wrote:
> Sorry, new attachment, i just noticed there's one more relevant message + i
> didn't add it in the correct order as the other warnings were
>
> Am 01.08.2014 12:37, schrieb oliver:
>
> Hi,
>
> attached is a small patch that adds 2 more warnings to the MSVC warning
> ignore list
>
> greetings
>
> /oliver
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list