From 2c4df5a95d980260fa67c9360a4f24f397727d29 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 19 Jul 2009 01:35:10 +0000 Subject: [PATCH] MSVC: Disable 4351, a completely useless warning: "warning: I'm not miscompiling this". Um, ok, thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76355 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bacb07a33e7..90382503e40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,6 +205,9 @@ if( MSVC ) add_llvm_definitions( -wd4146 -wd4503 -wd4996 -wd4800 -wd4244 -wd4624 ) add_llvm_definitions( -wd4355 -wd4715 -wd4180 -wd4345 -wd4224 ) + # Suppress 'new behavior: elements of array 'array' will be default initialized' + add_llvm_definitions( -wd4351 ) + if (NOT ${LLVM_USE_CRT} STREQUAL "") list(FIND MSVC_CRT ${LLVM_USE_CRT} idx) if (idx LESS 0) -- 2.34.1