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

oliver llvm6549 at oli-obk.de
Fri Aug 1 03:37:42 PDT 2014


Hi,

attached is a small patch that adds 2 more warnings to the MSVC warning
ignore list

greetings

/oliver
-------------- next part --------------
>From f724186eff647775d0d3fd39def95cea32ff6813 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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index 8258512..be5a491 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -249,6 +249,8 @@ if( MSVC )
     -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
     -wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)'
+    -wd4458 # Suppress 'declaration of 'variable_name' hides class member'
+    -wd4456 # Suppress 'declaration of 'variable_name' hides previous local declaration'
     
     # Promoted warnings.
     -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
-- 
1.8.5.2.msysgit.0



More information about the llvm-commits mailing list