[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.1-11-g72fc4cd
git at osgeo.org
git at osgeo.org
Fri Apr 17 07:12:39 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-3.0 has been updated
via 72fc4cd802b0b4a69c2e0e6a0ac37f01315ef83c (commit)
from efafa58a6878f34055c616a3aa16566c2e598127 (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 72fc4cd802b0b4a69c2e0e6a0ac37f01315ef83c
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