mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Disable warning C4267 for MSVC. Otherwise it generate literally thousands of warnings when targeting x64. The warning occurs because int is 32 bit but size_t is 64 bit on Win64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c015723131
commit
b2b9b768ef
@ -222,7 +222,7 @@ if( MSVC )
|
|||||||
add_llvm_definitions( -D_SCL_SECURE_NO_WARNINGS -DCRT_NONSTDC_NO_WARNINGS )
|
add_llvm_definitions( -D_SCL_SECURE_NO_WARNINGS -DCRT_NONSTDC_NO_WARNINGS )
|
||||||
add_llvm_definitions( -D_SCL_SECURE_NO_DEPRECATE )
|
add_llvm_definitions( -D_SCL_SECURE_NO_DEPRECATE )
|
||||||
add_llvm_definitions( -wd4146 -wd4503 -wd4996 -wd4800 -wd4244 -wd4624 )
|
add_llvm_definitions( -wd4146 -wd4503 -wd4996 -wd4800 -wd4244 -wd4624 )
|
||||||
add_llvm_definitions( -wd4355 -wd4715 -wd4180 -wd4345 -wd4224 )
|
add_llvm_definitions( -wd4355 -wd4715 -wd4180 -wd4345 -wd4224 -wd4267 )
|
||||||
|
|
||||||
# Suppress 'new behavior: elements of array 'array' will be default initialized'
|
# Suppress 'new behavior: elements of array 'array' will be default initialized'
|
||||||
add_llvm_definitions( -wd4351 )
|
add_llvm_definitions( -wd4351 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user