[postgis-tickets] [SCM] PostGIS branch stable-2.3 updated. 9702b97a715e2507f2cc9d2437c3a0ee73ae0515

git at osgeo.org git at osgeo.org
Fri Apr 17 07:14:51 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.3 has been updated
       via  9702b97a715e2507f2cc9d2437c3a0ee73ae0515 (commit)
      from  31852cbaaf8d80c1404d8110df4eac42965e15c8 (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 9702b97a715e2507f2cc9d2437c3a0ee73ae0515
Author: Raúl Marín <git at rmr.ninja>
Date:   Fri Apr 17 16:12:22 2020 +0200

    Fix compilation errors with gcc 10
    
    Closes #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