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

Zack Weinberg zack@codesourcery.com
Mon Jul 1 15:56:00 GMT 2002


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-patches@gcc.gnu.org
Subject: Re: preprocessor/7029: preprocessor should ignore #warning with -M
Date: Mon, 1 Jul 2002 15:49:09 -0700

 On Mon, Jul 01, 2002 at 10:47:10PM +0100, Neil Booth wrote:
 > +  /* If we're outputting dependencies then inhibit warnings, otherwise
 > +     complain if other -M options have been given.  */
 > +  if (CPP_OPTION (pfile, print_deps))
 > +    CPP_OPTION (pfile, inhibit_warnings) = 1;
 
 This will suppress warnings when -MD or -MF is in use, won't it?  We
 still want them then (since we're proceeding to do the compilation,
 and the user will never see them otherwise).
 
 zw



More information about the Gcc-prs mailing list