Subject: | compilation of module fails |
on irix 6.5.30, using mipspro 7.4.4 compiler, compilation of module
Compress-Raw-Zlib-2.049 fails (using zlib-1.2.6 from /usr/local;
obviously using supplied zlib-src fails also):
cc -n32 -mips3 -c -I./zlib-src -n32 -mips3 -c99 -O3 -OPT:Olimit=0
-D_BSD_TYPES -D_BSD_TIME -woff 1184,1552 -I/usr/local/include
-DLANGUAGE_C -O3 -OPT:Olimit=0:space=ON -DVERSION=\"2.049\"
-DXS_VERSION=\"2.049\" "-I/usr/local/lib/perl5/5.14.2/mips3-n32/CORE"
-DNO_VIZ -DZ_SOLO -DGZIP_OS_CODE=3 -DUSE_PPPORT_H Zlib.c
cc-1117 cc: ERROR File = Zlib.xs, Line = 502
An expression appears after a "return" in a "void" function.
return safefree(ptr);
^
imho, this patch should be applied to Zlib.xs:
--- Compress-Raw-Zlib-2.049/Zlib.xs Sat Jan 28 13:22:19 MET 2012
+++ Compress-Raw-Zlib-2.049__hsk/Zlib.xs Mon Feb 20 11:32:51 MET 2012
@@ -499,7 +499,8 @@
void my_zcfree (voidpf opaque, voidpf ptr)
{
- return safefree(ptr);
+ safefree(ptr);
+ return;
}
#endif