perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Garcia-Suarez <rgarciasua...@mandriva.com>
Subject Re: compiling trunk on Suse Linux 10.1
Date Tue, 06 Jun 2006 12:27:55 GMT
Rafael Garcia-Suarez wrote:
> > The preprocessor converts line 564 into
> > 
> >     (void) (*Perl_Gsigfpe_saved_ptr(((void *)0))) = signal(8, 
> > ((__sighandler_t) 1)); ;
> 
> Not a valid C line.
> 
> Note that PERL_SYS_INIT3 can expand to multiple statements; IMHO you
> shouldn't cast it to void.
> 
> That said, this patch could help :

Actually, on some systems and with some compilers, PERL_SYS_INIT3 could
even begin with if(1).

So, don't cast PERL_SYS_INIT3 to void.

If we know what prompted the addition of this (void) cast here, we could
fix the origin of the warning upstream... (if not yet done, given all
the warning-reducing work made lately)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message