meson: Make some warnings handled as errors with MSVC
authorGert Wollny <gert.wollny@collabora.com>
Thu, 23 Apr 2020 10:32:02 +0000 (12:32 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 13:44:10 +0000 (13:44 +0000)
We should really pass the right number and parameter types to
functions.

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

meson.build

index f7ed6c73af61e8af970c60f9c0ff4d0c6bdca0ba..cbd8e72d17636e52ac0d128125be95587ae8f71f 100644 (file)
@@ -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