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

oliver llvm6549 at oli-obk.de
Fri Aug 1 03:48:17 PDT 2014


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140801/6a7d5df5/attachment.html>
-------------- next part --------------
>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'
+    -wd4458 # Suppress 'declaration of 'variable_name' hides class member'
     -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




More information about the llvm-commits mailing list