[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0alpha1-13-gef4a050a9

git at osgeo.org git at osgeo.org
Mon May 30 08:06:39 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  ef4a050a93f0e7fd43d5658909225e89813a5e28 (commit)
      from  3c6254dde25ddb90c6a1ce914801a3677dbff48a (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 ef4a050a93f0e7fd43d5658909225e89813a5e28
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon May 30 08:06:35 2022 -0700

    Explicitly ignore return values for CI

diff --git a/loader/pgsql2shp-core.c b/loader/pgsql2shp-core.c
index 4a3d593de..6534bdc44 100644
--- a/loader/pgsql2shp-core.c
+++ b/loader/pgsql2shp-core.c
@@ -1352,8 +1352,8 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
 	/* If a user-defined query has been specified, create and point the state to our new table */
 	if (state->config->usrquery)
 	{
-		asprintf(&(state->table), "__pgsql2shp%lu_tmp_table", (long)getpid());
-		asprintf(&query, "CREATE TEMP TABLE \"%s\" AS %s", state->table, state->config->usrquery);
+		(void)asprintf(&(state->table), "__pgsql2shp%lu_tmp_table", (long)getpid());
+		(void)asprintf(&query, "CREATE TEMP TABLE \"%s\" AS %s", state->table, state->config->usrquery);
 		res = PQexec(state->conn, query);
 		free(query);
 
@@ -1377,7 +1377,7 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
 	/* Get the list of columns and their types for the selected table */
 	if (state->schema)
 	{
-		asprintf(&query, "SELECT a.attname, a.atttypid, "
+		(void)asprintf(&query, "SELECT a.attname, a.atttypid, "
 		        "a.atttypmod, a.attlen FROM "
 		        "pg_attribute a, pg_class c, pg_namespace n WHERE "
 		        "n.nspname = '%s' AND a.attrelid = c.oid AND "
@@ -1387,7 +1387,7 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
 	}
 	else
 	{
-		asprintf(&query, "SELECT a.attname, a.atttypid, "
+		(void)asprintf(&query, "SELECT a.attname, a.atttypid, "
 		        "a.atttypmod, a.attlen FROM "
 		        "pg_attribute a, pg_class c WHERE "
 		        "a.attrelid = c.oid and a.attnum > 0 AND "
@@ -1951,7 +1951,7 @@ ShpDumperOpenTable(SHPDUMPERSTATE *state)
 	state->fetchres = NULL;
 
 	/* Generate the fetch query */
-	asprintf(&(state->fetch_query), "FETCH %d FROM cur", state->config->fetchsize);
+	(void)asprintf(&(state->fetch_query), "FETCH %d FROM cur", state->config->fetchsize);
 
 	return SHPDUMPEROK;
 }

-----------------------------------------------------------------------

Summary of changes:
 loader/pgsql2shp-core.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list