[postgis-tickets] [SCM] PostGIS branch stable-2.4 updated. eca3164120cc7beeafcef8e7eb6ce815dab3b811
git at osgeo.org
git at osgeo.org
Fri Apr 17 07:13:44 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.4 has been updated
via eca3164120cc7beeafcef8e7eb6ce815dab3b811 (commit)
from 40015c93263fd242ad8661488b315f4aa80a97d6 (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 eca3164120cc7beeafcef8e7eb6ce815dab3b811
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