[postgis-tickets] [SCM] PostGIS branch stable-2.5 updated. 2.5.4-9-g0b47e35
git at osgeo.org
git at osgeo.org
Fri Apr 17 07:13:17 PDT 2020
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 "PostGIS".
The branch, stable-2.5 has been updated
via 0b47e35a3184b8fb076bca78397ac6ba811659db (commit)
from 526ba3d7160b14de18cd3273ccf65263038a3e42 (commit)
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 0b47e35a3184b8fb076bca78397ac6ba811659db
Author: Raúl Marín <git at rmr.ninja>
Date: Fri Apr 17 16:12:22 2020 +0200
Fix compilation errors with gcc 10
References #4667
diff --git a/raster/test/cunit/cu_tester.c b/raster/test/cunit/cu_tester.c
index a75504f..e362323 100644
--- a/raster/test/cunit/cu_tester.c
+++ b/raster/test/cunit/cu_tester.c
@@ -14,6 +14,8 @@
#include "CUnit/Basic.h"
#include "cu_tester.h"
+char cu_error_msg[MAX_CUNIT_MSG_LENGTH + 1] = {0};
+
/* Internal funcs */
static void
cu_error_reporter(const char *fmt, va_list ap);
diff --git a/raster/test/cunit/cu_tester.h b/raster/test/cunit/cu_tester.h
index 263359c..a166f03 100644
--- a/raster/test/cunit/cu_tester.h
+++ b/raster/test/cunit/cu_tester.h
@@ -8,6 +8,9 @@
*
**********************************************************************/
+#ifndef _CU_RASTER_TESTER_H
+#define _CU_RASTER_TESTER_H 1
+
#include "librtcore.h"
#include "../../../postgis_config.h"
@@ -18,7 +21,7 @@
#define PG_ADD_TEST(suite, testfunc) CU_add_test(suite, #testfunc, testfunc)
/* Contains the most recent error message generated by rterror. */
-char cu_error_msg[MAX_CUNIT_MSG_LENGTH+1];
+extern char cu_error_msg[];
/* Resets cu_error_msg back to blank. */
void cu_error_msg_reset(void);
@@ -35,3 +38,5 @@ rt_band cu_add_band(
/* Our internal callback to register Suites with the main tester */
typedef void (*PG_SuiteSetup)(void);
+
+#endif /* _CU_RASTER_TESTER_H */
-----------------------------------------------------------------------
Summary of changes:
raster/test/cunit/cu_tester.c | 2 ++
raster/test/cunit/cu_tester.h | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list