Mesa (master): meson: Make some warnings handled as errors with MSVC

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 18 13:58:58 UTC 2020


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

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Thu Apr 23 12:32:02 2020 +0200

meson: Make some warnings handled as errors with MSVC

We should really pass the right number and parameter types to
functions.

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6227>

---

 meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meson.build b/meson.build
index f7ed6c73af6..cbd8e72d176 100644
--- a/meson.build
+++ b/meson.build
@@ -986,6 +986,8 @@ if cc.get_id() == 'msvc'
                '/wd4624',  # destructor was implicitly defined as deleted [from LLVM]
                '/wd4309',  # 'initializing': truncation of constant value
                '/wd4838',  # conversion from 'int' to 'const char' requires a narrowing conversion
+               '/we4020',  # Error when passing the wrong number of parameters
+               '/we4024',  # Error when passing different type of parameter
               ]
     if cc.has_argument(a)
       c_args += a



More information about the mesa-commit mailing list