nouveau: avoid build failures since 0fc21ecf
[mesa.git] / scons / gallium.py
index efc65e7181b74c8d3ef2f7883652f25a1e4fccf8..46dbf0ebd0e58e71f131c72ba04ca522d7c3cc54 100755 (executable)
@@ -300,6 +300,7 @@ def generate(env):
 
     # C preprocessor options
     cppdefines = []
+    cppdefines += ['__STDC_LIMIT_MACROS']
     if env['build'] in ('debug', 'checked'):
         cppdefines += ['DEBUG']
     else:
@@ -549,6 +550,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