Module: Mesa
Branch: master
Commit: 5127160fb61927c40117f80c3abd291f9d3fa98a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5127160fb61927c40117f80c3abd291f9d3fa98a

Author: Erik Faye-Lund <[email protected]>
Date:   Tue Jan 14 11:56:13 2020 +0100

meson: disable some more warnings on msvc

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 <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4343>

---

 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index bf306605645..45a760c7d02 100644
--- a/meson.build
+++ b/meson.build
@@ -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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to