[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-111-gb3fcb2d8e
git at osgeo.org
git at osgeo.org
Sat Sep 17 12:15:02 PDT 2022
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, master has been updated
via b3fcb2d8e0ae0a0e9f25393a035f9cb7367c704a (commit)
via dba51176c5d1a7576f0df71c7cd4154281af79ee (commit)
from 92b3ff24e095872e9fcd3d2bef2a8a622c7a1c15 (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 b3fcb2d8e0ae0a0e9f25393a035f9cb7367c704a
Author: Sandro Santilli <strk at kbt.io>
Date: Sat Sep 17 16:24:40 2022 +0200
[gitlab-ci] Use debian bookworm and PostgreSQL 14
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16a010e5f..690762ee9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@
before_script:
- apt-get update -qq && apt-get install -y
bison flex
- postgresql-13 postgresql-server-dev-13
+ postgresql-14 postgresql-server-dev-14
build-essential autoconf libtool libcunit1-dev
xsltproc docbook-xsl docbook-mathml dblatex
libproj-dev libgdal-dev libgeos-dev libjson-c-dev
@@ -34,9 +34,9 @@
- ${SRCDIR}/utils/check_distclean.sh
test:
- image: debian:bullseye
+ image: debian:bookworm
<<: *build_definition
test32:
- image: i386/debian:bullseye
+ image: i386/debian:bookworm
<<: *build_definition
commit dba51176c5d1a7576f0df71c7cd4154281af79ee
Author: Sandro Santilli <strk at kbt.io>
Date: Fri Sep 16 23:33:25 2022 +0200
Fix partly outside array bounds gcc warning
Closes #5233
diff --git a/libpgcommon/gserialized_gist.h b/libpgcommon/gserialized_gist.h
index b3e0ca75a..8edade557 100644
--- a/libpgcommon/gserialized_gist.h
+++ b/libpgcommon/gserialized_gist.h
@@ -56,16 +56,12 @@ bool gidx_is_unknown(const GIDX *a);
/* Generate human readable form for GIDX. */
char *gidx_to_string(GIDX *a);
-/* typedef to correct array-bounds checking for casts to GIDX - do not
- use this ANYWHERE except in the casts below */
-typedef float _gidx_float_array[sizeof(float) * 2 * 4];
-
/* Returns number of dimensions for this GIDX */
#define GIDX_NDIMS(gidx) ((VARSIZE((gidx)) - VARHDRSZ) / (2 * sizeof(float)))
/* Minimum accessor. */
-#define GIDX_GET_MIN(gidx, dimension) (*((_gidx_float_array *)(&(gidx)->c)))[2 * (dimension)]
+#define GIDX_GET_MIN(gidx, dimension) *( (gidx)->c + 2 * (dimension) )
/* Maximum accessor. */
-#define GIDX_GET_MAX(gidx, dimension) (*((_gidx_float_array *)(&(gidx)->c)))[2 * (dimension) + 1]
+#define GIDX_GET_MAX(gidx, dimension) *( (gidx)->c + 2 * (dimension) + 1 )
/* Minimum setter. */
#define GIDX_SET_MIN(gidx, dimension, value) ((gidx)->c[2 * (dimension)] = (value))
/* Maximum setter. */
-----------------------------------------------------------------------
Summary of changes:
.gitlab-ci.yml | 6 +++---
libpgcommon/gserialized_gist.h | 8 ++------
2 files changed, 5 insertions(+), 9 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list