|
Posted by Sisyphus on April 10, 2006, 1:33 am
Please log in for more thread options
> Hi. <xs newbie warning=on> Compiling my Math-WalshTransform-1.11 on a
> Fedora5 with gcc 4.1.0 gives me (amongst other stuff which I can fix):
>
> In file included from WalshTransform.xs:7:
> ppport.h:231:1: warning: "PERL_UNUSED_DECL" redefined
> In file included from WalshTransform.xs:5:
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:163:1:
> warning: this is the location of the previous definition
> WalshTransform.xs: In function 'XS_Math__WalshTransform_xs_fht':
> WalshTransform.xs:50: warning: format '%d' expects type 'int',
> but argument 4 has type 'I32'
> WalshTransform.xs: In function 'XS_Math__WalshTransform_xs_fhtinv':
> WalshTransform.xs:90: warning: format '%d' expects type 'int',
> but argument 4 has type 'I32'
>
.
.
> The lines 50 and 90 are like
> fprintf (stderr, "fhtinv: n should be a power of 2, but was %d\n",
items);
> How should I convert my I32 items builtin into an int ?
>
Not sure - '%d' is quite happy to accept an I32 for me. Does casting to an
'int' fix the problem :
fprintf (stderr, "fhtinv: n should be a power of 2, but was %d\n",
(int)items);
Cheers,
Rob
|