Subject: | Build warnings |
'make' produces the following warnings:
gcc -c -DPERL_USE_SAFE_PUTENV -DPERL_DONT_CREATE_GVSV -DNO_MATHOMS
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -DUSEIMPORTLIB
-O3 -pipe -funit-at-a-time -mtune=pentium4m -march=pentium4 -mfpmath=sse
-mieee-fp -mmmx -msse -msse2 -DVERSION=\"1.07\" -DXS_VERSION=\"1.07\"
"-I/usr/lib/perl5/5.8/cygwin/CORE" UUlib.c
UUlib.c: In function `XS_Convert__UUlib__Item_rename':
UUlib.c:952: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_decode_temp':
UUlib.c:983: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_remove_temp':
UUlib.c:1014: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_decode':
UUlib.c:1046: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_info':
UUlib.c:1082: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_state':
UUlib.c:1112: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_mode':
UUlib.c:1144: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_uudet':
UUlib.c:1183: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_size':
UUlib.c:1214: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_filename':
UUlib.c:1246: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_subfname':
UUlib.c:1288: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_mimeid':
UUlib.c:1319: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_mimetype':
UUlib.c:1350: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_binfile':
UUlib.c:1381: warning: cast to pointer from integer of different size
UUlib.c: In function `XS_Convert__UUlib__Item_parts':
UUlib.c:1412: warning: cast to pointer from integer of different size
These can be traced to an improper cast in the 'typemap' file. The
attached patch fixes this.
Subject: | uulib.patch |
diff -urN Convert-UUlib-patched/typemap Convert-UUlib-1.07/typemap
--- Convert-UUlib-patched/typemap 2006-12-11 08:34:58.000000000 -0500
+++ Convert-UUlib-1.07/typemap 2005-03-03 11:56:46.000000000 -0500
@@ -5,7 +5,7 @@
T_UULIST
if (sv_derived_from($arg, \"Convert::UUlib::Item\")) {
IV tmp = SvIV((SV*)SvRV($arg));
- $var = INT2PTR($type, tmp);
+ $var = ($type) tmp;
}
else
croak(\"$var is not of type Convert::UUlib::Item\")