José Fonseca wrote:
> Microsoft compilers don't support C99 syntax. The only native windows
> compilers that support C99 syntax are mingw32-gcc and Intel C/C++
> compiler, but we can't seriously support windows platform by targeting
> these compilers alone and leave msvc out.
> 
> So there is no point in pretending that C99 syntax is OK when
> compiling gallium source code with gcc on unices. The -std=c99 option
> will have to go away.
> 
> The -ansi option is too restrictive, so the best is just to use the
> gcc default, which is "gnu89", corresponding to the 1990 C standard
> plus GNU extensions.
> 
> It might be also useful to enable "-pedantic", so that you'll get
> warnings when you (ab)use the GNU extensions. The only annoying thing
> with "-pedantic" is the // comments warnings, which virtually every C
> compiler supports nowadays... Any idea on how to silence it when using
> -pedantic?

I never used //-style comments in Mesa (core Mesa anyway).  I'm still 
interested in keeping Mesa compiling on AIX, HPUX, etc., some of which 
choked on // IIRC.  I'd be willing to give up // comments in order to 
use -pedantic.

-Brian


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to