Mesa (master): scons: Disable MSVC warnings about inconsistent function annotation.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Mar 25 10:44:19 UTC 2015


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

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Tue Mar 24 19:50:48 2015 +0000

scons: Disable MSVC warnings about inconsistent function annotation.

Somehow, merely including any of the *intrin.h headers causes dozens of
this warnings (when compiling pretty much every source file).  MSVC does
not always complain the same -- so it's possible we're doing something
weird --, but silence these warnings in the meanwhile.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 scons/gallium.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/scons/gallium.py b/scons/gallium.py
index efc65e7..51b84d7 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -549,6 +549,7 @@ def generate(env):
             env.Append(CCFLAGS = [
                 '/analyze',
                 #'/analyze:log', '${TARGET.base}.xml',
+                '/wd28251', # Inconsistent annotation for function
             ])
         if env['clang']:
             # scan-build will produce more comprehensive output




More information about the mesa-commit mailing list