scons: Disable MSVC warnings about inconsistent function annotation.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 24 Mar 2015 19:50:48 +0000 (19:50 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2015 10:42:45 +0000 (10:42 +0000)
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@vmware.com>
scons/gallium.py

index efc65e7181b74c8d3ef2f7883652f25a1e4fccf8..51b84d7652ba054c80b59ad08a4a80d4ff60eb31 100755 (executable)
@@ -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