[geos-commits] [SCM] geos branch warn-on-using-c++-api updated. f2d5208dc073d9319fff8143c24d26b06ca33117
git at osgeo.org
git at osgeo.org
Wed Oct 4 04:10:46 PDT 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "geos".
The branch, warn-on-using-c++-api has been updated
discards 291666f5780d3f3a80aaf374400eea287fa104dc (commit)
via f2d5208dc073d9319fff8143c24d26b06ca33117 (commit)
via 3818e56d78dde30c1849341eabe67a5b809b74e2 (commit)
This update added new revisions after undoing existing revisions. That is
to say, the old revision is not a strict subset of the new revision. This
situation occurs when you --force push a change and generate a repository
containing something like this:
* -- * -- B -- O -- O -- O (291666f5780d3f3a80aaf374400eea287fa104dc)
\
N -- N -- N (f2d5208dc073d9319fff8143c24d26b06ca33117)
When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f2d5208dc073d9319fff8143c24d26b06ca33117
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Oct 4 12:11:23 2017 +0200
Emit a warning at compile time about C++ API being unstable
Aware users can remove the warning by defining macro
WE_ACKNOWLEDGE_THAT_THE_GEOS_CPLUSPLUS_API_IS_UNSTABLE
See discussion
https://lists.osgeo.org/pipermail/geos-devel/2017-October/008054.html
diff --git a/configure.ac b/configure.ac
index f68060a..52cbe61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,10 @@ AM_MAINTAINER_MODE
AC_CONFIG_HEADERS([include/config.h] [include/geos/platform.h])
AC_PROG_CC
+
+dnl Hush warnings
+AC_DEFINE(WE_ACKNOWLEDGE_THAT_THE_GEOS_CPLUSPLUS_API_IS_UNSTABLE, [1], [We know])
+
dnl use libtool ----------------------------------------------------------
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_WIN32_DLL
@@ -162,7 +166,8 @@ AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wno-long-long], [dummy_cv_wno
NUMERICFLAGS=""
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ffloat-store], [dummy_cv_ffloat_store], [-ffloat-store], [], [NUMERICFLAGS="$NUMERICFLAGS -ffloat-store"], [])
-DEFAULTFLAGS="${WARNFLAGS} ${NUMERICFLAGS}"
+HUSHWARNING="-DWE_ACKNOWLEDGE_THAT_THE_GEOS_CPLUSPLUS_API_IS_UNSTABLE"
+DEFAULTFLAGS="${WARNFLAGS} ${NUMERICFLAGS} ${HUSHWARNING}"
AM_CXXFLAGS="${AM_CXXFLAGS} ${DEFAULTFLAGS}"
AM_CFLAGS="${AM_CFLAGS} ${DEFAULTFLAGS}"
diff --git a/include/geos/geom/Geometry.h b/include/geos/geom/Geometry.h
index 4deb2e5..b2609aa 100644
--- a/include/geos/geom/Geometry.h
+++ b/include/geos/geom/Geometry.h
@@ -21,6 +21,11 @@
#ifndef GEOS_GEOM_GEOMETRY_H
#define GEOS_GEOM_GEOMETRY_H
+#ifndef WE_ACKNOWLEDGE_THAT_THE_GEOS_CPLUSPLUS_API_IS_UNSTABLE
+# warning "The GEOS C++ API is unstable, please use the C API instead"
+# warning "HINT: #include geos_c.h"
+#endif
+
#include <geos/export.h>
#include <geos/platform.h>
#include <geos/inline.h>
diff --git a/tests/xmltester/Makefile.am b/tests/xmltester/Makefile.am
index 37928b0..b631260 100644
--- a/tests/xmltester/Makefile.am
+++ b/tests/xmltester/Makefile.am
@@ -136,10 +136,6 @@ XMLTester_SOURCES = \
XMLTester_LDADD = $(LIBS)
-# Intentionally drop -ansi -pedantic
-# See http://trac.osgeo.org/geos/ticket/319
-XMLTester_CXXFLAGS = $(INLINE_FLAGS)
-
AM_CPPFLAGS = -I$(top_srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/src/io/tinyxml -DTIXML_USE_STL
-----------------------------------------------------------------------
Summary of changes:
include/geos/noding/OrientedCoordinateArray.h | 230 +++++++-------
src/noding/OrientedCoordinateArray.cpp | 196 ++++++------
tests/unit/capi/GEOSConvexHullTest.cpp | 162 +++++-----
tests/unit/capi/GEOSIntersectionTest.cpp | 284 ++++++++---------
tests/unit/capi/GEOSisClosedTest.cpp | 190 +++++------
tests/unit/geom/Geometry/touchesTest.cpp | 332 ++++++++++----------
tests/unit/geom/GeometryComponentFilterTest.cpp | 190 +++++------
tests/unit/geom/GeometryFilterTest.cpp | 192 +++++------
.../geom/prep/PreparedGeometry/touchesTest.cpp | 268 ++++++++--------
tests/unit/operation/buffer/BufferBuilderTest.cpp | 260 +++++++--------
10 files changed, 1152 insertions(+), 1152 deletions(-)
hooks/post-receive
--
geos
More information about the geos-commits
mailing list