From 8ee1df065234eaf27c53c03bdf6e4ad487bc326d Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 30 Dec 2008 17:13:38 +0000 Subject: scons: Specify C99 throughout all the tree. 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'scons/gallium.py') diff --git a/scons/gallium.py b/scons/gallium.py index 1136d269089..19eeb18be85 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -311,6 +311,7 @@ def generate(env): '-Wmissing-prototypes', '-Wno-long-long', '-ffast-math', + '-std=c99', '-pedantic', '-fmessage-length=0', # be nice to Eclipse ] -- cgit v1.2.3