This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

Re: preprocessor/7029: preprocessor should ignore #warning with -M


The following reply was made to PR preprocessor/7029; it has been noted by GNATS.

From: Zack Weinberg <zack@codesourcery.com>
To: Neil Booth <neil@daikokuya.co.uk>
Cc: wolfgang.bangerth@iwr.uni-heidelberg.de, gcc-gnats@gcc.gnu.org,
	gcc-bugs@gcc.gnu.org
Subject: Re: preprocessor/7029: preprocessor should ignore #warning with -M
Date: Mon, 1 Jul 2002 14:33:20 -0700

 On Mon, Jul 01, 2002 at 10:20:29PM +0100, Neil Booth wrote:
 > Zack Weinberg wrote:-
 > 
 > > > Warnings are sent to stderr and the dpendency information isn't; so if
 > > > you don't want the warnings you are free to pipe stderr to /dev/null.
 > > > If you still wanted to retain errors but not warnings you can use -w,
 > > > or check the compiler return code.
 > > > 
 > > > So I disagree that there is any reason to change the existing behaviour,
 > > > and want to close this PR.  Do you agree, Zack?
 > > 
 > > Well, I think it might be reasonable for -M switches that inhibit
 > > compilation to imply -w.  Presumably the user will get all the
 > > warnings in due course as part of the real compilation.
 > 
 > Fair enough; I'll create a patch.
 
 Thanks.
 
 zw


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