Hello Derick, Thursday, May 19, 2005, 4:30:16 PM, you wrote:
> On Thu, 19 May 2005, Wez Furlong wrote: >> Can we ignore that particular warning in future? >> >> Trailing commas are good to keep around for copy-and-paste purposes, >> and can also help to reduce the number of lines you see in a diff when >> elements are added to enums, arrays and structs, if you're into that >> kind of thing. >> >> There should be a flag to turn this particular warning off, it's >> tempting to enable it if we detect gcc 4; the compiler shouldn't force >> you to change what is a safe and well accepted coding practice, for no >> better reason than just because the people writing the compiler are >> anally retentive. > To find that out, we can ask them to fix this annoyance, not? As i meanwhile dicussed with ilia. Gcc supports the -std switch that lets you specify the language: http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/C-Dialect-Options.html#C-Dialect-Options I think we want either -std=c99 or -std=gnu99 for gcc 3.4+. The manual states: -std= Determine the language standard. This option is currently only supported when compiling C or C++. A value for this option must be provided; possible values are c89 iso9899:1990 ISO C90 (same as -ansi). iso9899:199409 ISO C90 as modified in amendment 1. c99 c9x iso9899:1999 iso9899:199x ISO C99. Note that this standard is not yet fully supported; see http://gcc.gnu.org/gcc-3.4/c99status.html for more information. The names c9x and iso9899:199x are deprecated. gnu89 Default, ISO C90 plus GNU extensions (including some C99 features). gnu99 gnu9x ISO C99 plus GNU extensions. When ISO C99 is fully implemented in GCC, this will become the default. The name gnu9x is deprecated. c++98 The 1998 ISO C++ standard plus amendments. gnu++98 The same as -std=c++98 plus GNU extensions. This is the default for C++ code. Thus i think gnu99 is the best option. -- Best regards, Marcus mailto:[EMAIL PROTECTED] -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
