[Monetdb-developers] [Monetdb-sql-checkins] geom/src/monetdb5 geom.mx, Geom_0-4, 1.13.4.1, 1.13.4.2

Sjoerd Mullender sjoerd at acm.org
Fri May 30 13:55:25 CEST 2008


Stefan Manegold wrote:
> Update of /cvsroot/monetdb/geom/src/monetdb5
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30443/src/monetdb5
> 
> Modified Files:
>       Tag: Geom_0-4
> 	geom.mx 
> Log Message:
> 
> attempt to fix compilation problem
> "
> geom/src/monetdb5/geom.mx:791: error: initialization discards qualifiers from pointer target type
> "
> with gcc 4.3.0 on Gentoo 
> 
> 
> U geom.mx
> Index: geom.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/geom/src/monetdb5/geom.mx,v
> retrieving revision 1.13.4.1
> retrieving revision 1.13.4.2
> diff -u -d -r1.13.4.1 -r1.13.4.2
> --- geom.mx	28 May 2008 09:43:48 -0000	1.13.4.1
> +++ geom.mx	30 May 2008 04:58:29 -0000	1.13.4.2
> @@ -788,7 +788,7 @@
>  	GEOSGeom geosGeometry = wkb2geos(*geom);
>  
>  	if (geosGeometry) {  
> -		GEOSCoordSeq gcs = GEOSGeom_getCoordSeq(geosGeometry);
> +		GEOSCoordSeq gcs = (GEOSCoordSeq)GEOSGeom_getCoordSeq(geosGeometry);
>  
>  		/* we could also check if geom is a
>  			LineString, LinearRing or Point */ 
> 
> 

It seems to me a better fix is to keep the qualifier and to declare gcs
as const.

-- 
Sjoerd Mullender

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 369 bytes
Desc: OpenPGP digital signature
URL: <http://www.monetdb.org/pipermail/developers-list/attachments/20080530/c5179021/attachment.sig>


More information about the developers-list mailing list