meson: add back -Werror=vla to msvc compat flags
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 23 May 2022 09:58:55 +0000 (11:58 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Jun 2022 07:14:43 +0000 (07:14 +0000)
commitc21dfe3348694c23fff120b2286ff01402257294
treeee71094d7684b1c886c09c41ce7f5c118cc71415
parent45fb815a75669b32f6317ba6d53ec9465a4b0ae0
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>
meson.build