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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user