preprocessor/2219
Jeremy Elson
jelson@circlemud.org
Sun Apr 1 00:00:00 GMT 2001
The following reply was made to PR preprocessor/2219; it has been noted by GNATS.
From: Jeremy Elson <jelson@circlemud.org>
To: neil@gcc.gnu.org
Cc: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Subject: Re: preprocessor/2219
Date: Wed, 07 Mar 2001 23:42:27 -0800
By the way, I should also say that the identical code compiled under
previous versions of GCC (e.g. 2.95) does not give a warning.
I only saw this warning after upgrading to one of the 2.97 snapshots.
neil@gcc.gnu.org writes:
>Synopsis: Using "##" with macro varargs generates spurious warning
>
>State-Changed-From-To: open->closed
>State-Changed-By: neil
>State-Changed-When: Wed Mar 7 23:35:35 2001
>State-Changed-Why:
> The message is correct. You cannot paste the two tokens
> and get a valid preprocessing token. The only token
> beginning with a '(' is the '(' token itself. The only
> thing that can be pre-pasted with a string literal is the
> letter 'L' to make it wide.
>
> Try removing the ##, you probably don't need it.
> I can't be sure how to fix your problem, because there is
> no attachment.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2219&database=gcc
More information about the Gcc-prs
mailing list