[postgis] make problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[postgis] make problem

James Reid
Hi - Im trying to compile postgis (0.6.1 or 0.6.2or cvs) and am getting the following (example) errors on a Solaris 2.7 sun 4500:

postgis_ops.c:852: warning: assignment makes integer from pointer without a cast
postgis_ops.c: In function `ggeometry_consistent':

any thoughts?

cheers

+----------------------------------------------------------------------------------------+
James S Reid,

Tel: +44 0131 651 1383
Fax: +44 0131 650 3308

E-mail: [hidden email]                  
+------------------------------------------------------------------------------------------+
+----------------------------------------------------------------------------------------+
ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸

James S Reid,
National Service Coordinator UKBORDERS
EDINA ,                                          Tel: +44 0131 651 1383
Data Library,                                  Fax: +44 0131 650 3308
Main Library,
Edinburgh University,
Edinburgh EH8 9LJ,              E-mail: [hidden email]
Scotland.                           Internet: edina.ed.ac.uk/ukborders/

ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
+------------------------------------------------------------------------------------------+
       


------------------------ Yahoo! Groups Sponsor ---------------------~-->
See What You've Been Missing!
Amazing Wireless Video Camera.
Click here
http://us.click.yahoo.com/75YKVC/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[hidden email]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



Reply | Threaded
Open this post in threaded view
|

RE: [postgis] make problem

Norman Vine
James Reid writes:
>
>Hi - Im trying to compile postgis (0.6.1 or 0.6.2or cvs) and
>am getting the following (example) errors on a Solaris 2.7 sun 4500:
>
>postgis_ops.c:852: warning: assignment makes integer from
>pointer without a cast
>postgis_ops.c: In function `ggeometry_consistent':
>
>any thoughts?

Ack..  that is a nasty macro call so it is hard to know
what the complaint is all about !

PG_SRC / src / include / access / gist.h
/*
** An entry on a GiST node.  Contains the key (pred), as well as
** its own location (rel,page,offset) which can supply the matching
** pointer.  The size of the pred is in bytes, and leafkey is a flag to
** tell us if the entry is in a leaf node.
*/
typedef struct GISTENTRY
{
        char   *pred;
        Relation rel;
        Page page;
        OffsetNumber offset;
        int bytes;
        bool leafkey;
} GISTENTRY;

/*
** macro to initialize a GISTENTRY
*/
#define gistentryinit(e, pr, r, pg, o, b, l)\
   do {(e).pred = pr; (e).rel = r; (e).page = pg; (e).offset = o; (e).bytes
= b; (e).leafkey = l;} while (0)

============

so maybe something like this would help ?

gistentryinit(*retval, (char *)NULL, entry->rel, entry->page,


The only sure way I know of to find the offending line
is to turn this into a function with each arg on its own line
then the compiler can tell you which one of the args is
causing the complaint
< inline function should do >

HTH

Norman


------------------------ Yahoo! Groups Sponsor ---------------------~-->
See What You've Been Missing!
Amazing Wireless Video Camera.
Click here
http://us.click.yahoo.com/75YKVC/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[hidden email]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/