meson: Disable MSVC warning 5105
Older versions of the Windows SDK are not compliant when the new preprocessor is active, which is the default when C17 is enabled. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10202>
This commit is contained in:
parent
e29f4a19a8
commit
e189839002
|
@ -1022,6 +1022,7 @@ if cc.get_id() == 'msvc'
|
|||
'/wd4624', # destructor was implicitly defined as deleted [from LLVM]
|
||||
'/wd4309', # 'initializing': truncation of constant value
|
||||
'/wd4838', # conversion from 'int' to 'const char' requires a narrowing conversion
|
||||
'/wd5105', # macro expansion producing 'defined' has undefined behavior (winbase.h, need Windows SDK upgrade)
|
||||
'/we4020', # Error when passing the wrong number of parameters
|
||||
'/we4024', # Error when passing different type of parameter
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue