mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 01:20:36 +00:00
meson: add back -Werror=vla to msvc compat flags
Back when STATIC_ASSERT was prepared for use in common code, the -Werror=vla flag was removed from the MSVC compat flags. But now we're using C++11 / C11 static asserts instead, so we can add it back again. This should help us noticing some breakages before they happen. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16670>
This commit is contained in:
parent
45fb815a75
commit
c21dfe3348
@ -1240,7 +1240,7 @@ else
|
||||
# Check for C and C++ arguments for MSVC compatibility. These are only used
|
||||
# in parts of the mesa code base that need to compile with MSVC, mainly
|
||||
# common code
|
||||
_trial_msvc = ['-Werror=pointer-arith', '-Werror=gnu-empty-initializer']
|
||||
_trial_msvc = ['-Werror=pointer-arith', '-Werror=vla', '-Werror=gnu-empty-initializer']
|
||||
c_msvc_compat_args += cc.get_supported_arguments(_trial_msvc)
|
||||
cpp_msvc_compat_args += cpp.get_supported_arguments(_trial_msvc)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user