unmatched quotes in #if 0 code?
Bruce Korb
bruce.korb@gmail.com
Mon Jan 22 21:43:00 GMT 2007
On 1/22/07, Andrew Pinski <pinskia@physics.uc.edu> wrote:
> >
> > I'm sure we've bounced around a few times on this already[1]...
> >
> > #if 0
> > This is a comment to test unpaired '" characters
> > #endif
> >
> > produces:
> >
> > t.cc:2:38: warning: missing terminating ' character
> >
> > I'd like to think that when skipping, we don't actually want this
> > warning. If so, I'd propose something like:
>
> I think we do want this.
> See http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00480.html
>
> "Because these extensions were never documented (despite my pointing
> out the lack of documentation), no documentation changes are required
> with this patch. "
>
> And I rather have "#if 0" not act as a comment.
It is a very old tradition to do so. As long as it is a pedantic warning and
not an interfering-with-real-life warning, it ought not be a problem.
More information about the Gcc-patches
mailing list