meson: disable some more warnings on msvc
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 14 Jan 2020 10:56:13 +0000 (11:56 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 30 Mar 2020 10:13:40 +0000 (10:13 +0000)
These warnings triggers for me, and they are harmless as-is. Let's
disable them to avoid hiding actually scary warnings.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4343>

meson.build

index bf306605645cdeb75517e510919d6e9d9916d953..45a760c7d02d580052684ffc3ddbf0dbd3fedb94 100644 (file)
@@ -933,7 +933,9 @@ if cc.get_id() == 'msvc'
                '/wd4756',  # overflow in constant arithmetic
                '/wd4800',  # forcing value to bool 'true' or 'false' (performance warning)
                '/wd4996',  # disabled deprecated POSIX name warnings
-               '/wd4291']  # no matching operator delete found
+               '/wd4291',  # no matching operator delete found
+               '/wd4146',  # unary minus operator applied to unsigned type, result still unsigned
+               '/wd4200']  # nonstandard extension used: zero-sized array in struct/union
     if cc.has_argument(a)
       c_args += a
     endif