On Tue, Apr 27, 2004 at 04:23:54PM +0100, Dirk Koopman wrote:

> with these flags:-
> gcc   -std=c99 -pedantic -Wall
> 
> for this code:
>       char *p;
> #line 73
>       if (SvTRUE(ERRSV)) {
>               STRLEN n_a;
>               p = SvPV(ERRSV, n_a);
>       } else {
>               p = "unknown error";
>       }
> 
> I get this warning:
> ffperl.c: In function `ffperlcalc':
> ffperl.c:73: warning: ISO C forbids braced-groups within expressions
> 
> Should I care?

Yes :-)

But I'd hope that if you add -DPERL_GCC_PEDANTIC too, you won't see any of
these. (It changes some macro definitions to avoid the gcc-specific
constructs)

Nicholas Clark

Reply via email to