Mesa (master): meson: Disable MSVC warning 5105

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 22 10:58:25 UTC 2021


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

Author: James Park <jpark37 at lagfreegames.com>
Date:   Thu Jan 28 08:34:35 2021 -0800

meson: Disable MSVC warning 5105

Older versions of the Windows SDK are not compliant when the new
preprocessor is active, which is the default when C17 is enabled.

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10202>

---

 meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meson.build b/meson.build
index 97a058912d0..ff432eb9a41 100644
--- a/meson.build
+++ b/meson.build
@@ -1022,6 +1022,7 @@ 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
+               '/wd5105',  # macro expansion producing 'defined' has undefined behavior (winbase.h, need Windows SDK upgrade)
                '/we4020',  # Error when passing the wrong number of parameters
                '/we4024',  # Error when passing different type of parameter
               ]



More information about the mesa-commit mailing list