This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Remaining warnings report


On Mon, Jan 31, 2000 at 07:50:34PM +0100, Gerald Pfeifer wrote:
> On Mon, 31 Jan 2000, Zack Weinberg wrote:
> > "Ignoring command line option '-Wtraditional'" comes from cc1plus.  It
> > is fairly nonsensical to ask the C++ compiler for traditional
> > compatibility warnings.  I'd rather it just silently ignored them,
> > though - convincing the Makefile to not pass that to g++ will be
> > difficult.
> 
> I don't think any tools should ignore options that it does not support; a
> warning seems appropriate in that case (while an error would be to strict
> as we have experienced).

I agree that g++ -Wtraditional should warn, but in this case, we are
running xgcc on a .cc file, which magically invokes the C++ compiler.
I don't think this is useful behavior.  Or rather, I think it's more
useful to be able to compile a mixed-source-language project with the
same flags for all languages and not have noise complaints.

zw

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]