This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: pasting "." and "something" does not give a valid preprocessing token
- From: Mihnea Balta <dark_lkml at mymail dot ro>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 10 Mar 2003 11:00:35 +0200
- Subject: Re: pasting "." and "something" does not give a valid preprocessing token
- References: <200303101057.34447.dark_lkml@mymail.ro>
Sorry, I should have said "sv_port" instead of something in the subject line,
as that is the exact warning produced. It doesn't like my conf.##__prop
thing.
On Monday 10 March 2003 10:57, Mihnea Balta wrote:
> Hello,
>
> I've just installed gcc 3.2.2 and I get the warning from the subject line
> when compiling code that worked just fine with 2.95.3. The preprocessor
> output is what I expect it to be, but I'd like to know what the warning
> means. The offending code is:
>
> #define CONF_ADD_INT(__prop)
> \ if(!strncmp(key, #__prop, strlen(#__prop))){ \
> conf.##__prop = atoi(val); \
> return 1; \ }
>
> statement that produces the warning:
> CONF_ADD_INT(sv_port);
> The preprocessor output is exactly what I expected:
>
> if(!strncmp(key, "sv_port", strlen("sv_port"))){ conf.sv_port = atoi(val);
> return 1; };
>
> Thanks.
>
> ------------------------------------------------------------------------
> http://felicitari.mymail.ro/