Warning building perlamgick
Posted: 2011-12-19T03:59:52-07:00
Hi,
We have quite serious warning building perlmagick
Magick.xs: In function 'GetList':
Magick.xs:908:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs: In function 'GetPackageInfo':
Magick.xs:994:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs:997:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Append':
Magick.xs:2603:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Average':
Magick.xs:2696:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_BlobToImage':
Magick.xs:2844:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Clone':
Magick.xs:2954:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Coalesce':
Magick.xs:3076:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Compare':
Magick.xs:3275:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_CompareLayers':
Magick.xs:3411:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_DESTROY':
Magick.xs:3490:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs:3505:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs: In function 'XS_Image__Magick_EvaluateImages':
Magick.xs:3728:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Flatten':
Magick.xs:4041:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Fx':
Magick.xs:4205:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Get':
Magick.xs:4468:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs:4487:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Layers':
Magick.xs:6940:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Mogrify':
Magick.xs:10703:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Montage':
Magick.xs:11112:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Morph':
Magick.xs:11243:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Mosaic':
Magick.xs:11331:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Preview':
Magick.xs:11642:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Read':
Magick.xs:13056:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Smush':
Magick.xs:13593:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Transform':
Magick.xs:13950:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Do not know if it is spurious or not
I do not check the code but it seems that a cast to intptr_t will be better
Bastien
We have quite serious warning building perlmagick
Magick.xs: In function 'GetList':
Magick.xs:908:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs: In function 'GetPackageInfo':
Magick.xs:994:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs:997:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Append':
Magick.xs:2603:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Average':
Magick.xs:2696:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_BlobToImage':
Magick.xs:2844:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Clone':
Magick.xs:2954:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Coalesce':
Magick.xs:3076:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Compare':
Magick.xs:3275:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_CompareLayers':
Magick.xs:3411:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_DESTROY':
Magick.xs:3490:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs:3505:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Magick.xs: In function 'XS_Image__Magick_EvaluateImages':
Magick.xs:3728:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Flatten':
Magick.xs:4041:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Fx':
Magick.xs:4205:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Get':
Magick.xs:4468:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs:4487:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Layers':
Magick.xs:6940:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Mogrify':
Magick.xs:10703:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Montage':
Magick.xs:11112:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Morph':
Magick.xs:11243:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Mosaic':
Magick.xs:11331:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Preview':
Magick.xs:11642:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Read':
Magick.xs:13056:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Smush':
Magick.xs:13593:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Magick.xs: In function 'XS_Image__Magick_Transform':
Magick.xs:13950:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Do not know if it is spurious or not
I do not check the code but it seems that a cast to intptr_t will be better
Bastien