meson: Disable the more useless warnings in MSVC.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2020-07-14 12:01:39 +02:00
parent 4e9b341d45
commit 812634b68b
1 changed files with 9 additions and 1 deletions

View File

@ -59,7 +59,15 @@ endif
add_project_arguments(vkd3d_compiler.get_supported_arguments([
'-Wno-format',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter']),
'-Wno-unused-parameter',
'/wd4244', # Narrowing conversion
'/wd4101', # Unreferenced local variable
'/wd4267', # Another narrowing conversion
'/wd4996', # Secure no warnings
'/wd4334', # Result of 32-bit shift cast to 64-bit
'/wd4146', # Unary minus on unsigned
'/wd4305', # Truncation from double to float
]),
language : 'c')
if cpu_family == 'x86'