meson: Enable initialized-but-unused warning for MSVC

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19792>
This commit is contained in:
Jesse Natalie
2022-11-16 15:34:46 -08:00
committed by Marge Bot
parent 383715e33b
commit efe5b9163e
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ do { \
#ifdef HAVE_FUNC_ATTRIBUTE_UNUSED
#define UNUSED __attribute__((unused))
#elif defined (_MSC_VER)
#define UNUSED __pragma(warning(suppress:4100 4101))
#define UNUSED __pragma(warning(suppress:4100 4101 4189))
#else
#define UNUSED
#endif