mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 01:20:36 +00:00
meson: Add MSVC narrowing-int-to-char warnings
MSVC seems quite keen to warn us that we're narrowing an int into a char, even if it fits entirely within range. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6227>
This commit is contained in:
parent
d8edf8e383
commit
45f2252879
@ -984,6 +984,8 @@ if cc.get_id() == 'msvc'
|
||||
'/wd4146', # unary minus operator applied to unsigned type, result still unsigned
|
||||
'/wd4200', # nonstandard extension used: zero-sized array in struct/union
|
||||
'/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
|
||||
]
|
||||
if cc.has_argument(a)
|
||||
c_args += a
|
||||
|
Loading…
Reference in New Issue
Block a user