This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cpp -Wtraditional doesn't see left justified #error in unchosen path
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: cpp -Wtraditional doesn't see left justified #error in unchosen path
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Tue, 25 Jul 2000 09:49:59 -0700
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200007251222.IAA12179@caip.rutgers.edu>
On Tue, Jul 25, 2000 at 08:22:22AM -0400, Kaveh R. Ghazi wrote:
> > From: Zack Weinberg <zack@wolery.cumb.org>
> >
> > Oops. The checks were being done in the wrong order. Here is a
> > completely untested patch, which I will be testing along with some
> > unrelated changes later tonight.
> >
> > If you would write and check in a test case for this behavior, I'd
> > appreciate it.
> >
> > zw
>
> Thanks!
>
> I wrote the testcase below by copying and extending tr-warn1.c. It
> seemed pretty clear from the patch that you intended to continue
> hiding pedantic warnings inside unused clauses, but just please
> confirm that.
Yes, that is intended. Extended directives are properly used inside
conditional blocks - it would be obnoxious if they elicited a warning
even when they were not "seen".
zw