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
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Monetdb-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-developers
