scons: Specify C99 throughout all the tree.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 30 Dec 2008 17:13:38 +0000 (17:13 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 5 Jan 2009 15:24:56 +0000 (15:24 +0000)
MSVC may not support full C99, but supports more than plain C90. And
-pedantic without -std=c99 generates too many spurious warnings
(specially C++ style comments) to be of any use.

Note that using certain C99 features in the cross-platform parts of Gallium
is still not possible; namely mid-of-scope variable declarations and named
structure initializers will break MSVC builds.

scons/gallium.py
src/mesa/SConscript

index 1136d269089da4cbdee9bbe1d401815fae345508..19eeb18be85259395ae5399debfca534d9ea108e 100644 (file)
@@ -311,6 +311,7 @@ def generate(env):
             '-Wmissing-prototypes',
             '-Wno-long-long',
             '-ffast-math',
+            '-std=c99',
             '-pedantic',
             '-fmessage-length=0', # be nice to Eclipse
         ]
index a690d576b15357c44ff2477bea3a568010d068ca..72ddc341d1910552672ae97fa767542f37dd5f5a 100644 (file)
@@ -12,11 +12,6 @@ if env['platform'] != 'winddk':
                '#/src/mesa',
        ])
        
-       if gcc:
-               env.Append(CFLAGS = [
-                       '-std=c99',
-               ])
-
        #
        # Source files
        #
@@ -164,6 +159,7 @@ if env['platform'] != 'winddk':
                'state_tracker/st_context.c',
                'state_tracker/st_debug.c',
                'state_tracker/st_draw.c',
+               'state_tracker/st_draw_feedback.c',
                'state_tracker/st_extensions.c',
                'state_tracker/st_format.c',
                'state_tracker/st_framebuffer.c',