scons: don't add -Wmissing-field-initializers
authorMarek Olšák <maraeo@gmail.com>
Wed, 25 Jan 2012 13:08:16 +0000 (14:08 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sun, 29 Jan 2012 01:19:58 +0000 (02:19 +0100)
The warning is absolutely useless. It doesn't actually say that there are
uninitialized variables. It points out the fact that there are missing
initializers and that variables are initialized to zero implicitly, which is
exactly what we want and what we commonly make use of.

C90 and C99 require all unspecified variables in the initializer list to be set
to zero.

scons/gallium.py

index 86adc3e6a265de7725e7e51505585f772c485214..eed89cf71ca8a5e82e8e46cd7b1e8a437c41c6e8 100755 (executable)
@@ -364,10 +364,6 @@ def generate(env):
             '-Wmissing-prototypes',
             '-std=gnu99',
         ]
-        if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.0'):
-            ccflags += [
-                '-Wmissing-field-initializers',
-            ]
         if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2'):
             ccflags += [
                 '-Wpointer-arith',