Dirk Koopman wrote:
> If I use the following compiler:
> $ gcc --version
> gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
> 
> 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

The perl macros (see sv.h, specifically) use braced-groups when they can,
that is, when the 3 following conditions are true :
__GNUC__ is defined,
__STRICT_ANSI__ is not defined
the -pedantic flags does not appear

But for this to happen sv.h must be #included after perl.h ; as perl.h
#includes sv.h this should be the case if the #include order isn't messed
up. Please check it if you want this warning to disappear.

Reply via email to