gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] gcc and ansi


From: Dave Denholm
Subject: Re: [gnugo-devel] gcc and ansi
Date: 29 Apr 2003 10:46:28 +0100

Arend Bayer <address@hidden> writes:

> Does anyone know whether it is possible to invoke gcc such that
> -pedantic is passed to the compiler, but _not_ to the preprocessor?
> 
> (Or any other way to have gcc >3.0 accept variadic macros, but complain
> about mixing code with variable declarations?)
> 

Well, you can pass options specifically to cpp with -Wp,...

- we used to do that for -Wp,lang=c89  to disallow // comments, or
something like that.


You could try

 gcc -pedantic -Wp,-nopendatic

 --verbose shows both -pedantic and -nopedantic being passed.


I'd guess it's the language level, rather than the pedantic bit, that
needs to get passed to cpp

dd
-- 
Dave Denholm              <address@hidden>       http://www.esmertec.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]