MSVC: Disable 4351, a completely useless warning: "warning: I'm not miscompiling

this". Um, ok, thanks!

llvm-svn: 76355
This commit is contained in:
Daniel Dunbar 2009-07-19 01:35:10 +00:00
parent 8c0f05b6be
commit acd56a0902
1 changed files with 3 additions and 0 deletions

View File

@ -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)