[postgis-devel] [wktraster] Getting rid of warning

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Mon Mar 29 06:10:40 PDT 2010


Any clue about the PACKAGE_BUGREPORT, PACKAGE _NAME, PACKAGE_STRING, PACKAGE_TARNAME, PACKAGE_VERSION and RT_VERSION macros?

>-----Original Message-----
>From: postgis-devel-bounces at postgis.refractions.net [mailto:postgis-devel-
>bounces at postgis.refractions.net] On Behalf Of Mateusz Loskot
>Sent: 25 mars 2010 19:10
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Getting rid of warning
>
>Pierre Racine wrote:
>> Hi,
>>
>> I worked a little bit to get rid of some warnings but some still remain.
>> Is there any way to get rid of:
>>
>>   rt_api.c:2958: warning: cast from pointer to integer of different size
>>
>> provoqued by lines like:
>>
>>   assert(! (((uint64_t)ptr) % pixbytes) );
>
>Pierre,
>
>This warning is safe to ignore and I'd even say that it's good
>it is thrown by compiler, so we don't forget about some
>fragile constructions.
>
>However, if you're very unhappy with this warning,
>replacing uint64_t with uintptr_t (C99 standard), should do the job.
>
>Best regards,
>--
>Mateusz Loskot
>http://mateusz.loskot.net
>
>_______________________________________________
>postgis-devel mailing list
>postgis-devel at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list