[SCM] PostGIS branch master updated. 3.5.0alpha2-52-gb01497805

git at osgeo.org git at osgeo.org
Mon Sep 2 00:25:12 PDT 2024


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  b0149780595f840c27d837d85483141887454e05 (commit)
      from  f2edd689602cb18c7a7268142838b68ce41ddab0 (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 b0149780595f840c27d837d85483141887454e05
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Sep 2 09:24:55 2024 +0200

    Add printf format attributes for shapefile loader

diff --git a/loader/shp2pgsql-gui.c b/loader/shp2pgsql-gui.c
index 4672df8e2..7e357d58b 100644
--- a/loader/shp2pgsql-gui.c
+++ b/loader/shp2pgsql-gui.c
@@ -30,8 +30,10 @@
 #define GUI_RCSID "shp2pgsql-gui $Revision$"
 #define SHAPEFIELDMAXWIDTH 60
 
-static void pgui_log_va(const char *fmt, va_list ap);
-static void pgui_seterr_va(const char *fmt, va_list ap);
+static void pgui_log_va(const char *fmt, va_list ap) __attribute__ (( format(printf, 1, 0) ));
+static void pgui_seterr_va(const char *fmt, va_list ap) __attribute__ (( format(printf, 1, 0) ));
+static void pgui_logf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
+static void pgui_seterr(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
 
 static void update_conn_ui_from_conn_config(void);
 
@@ -244,7 +246,7 @@ pgui_log_va(const char *fmt, va_list ap)
 /*
 ** Write a message to the Import Log text area.
 */
-static void
+void
 pgui_logf(const char *fmt, ...)
 {
 	va_list ap;
@@ -264,7 +266,7 @@ pgui_seterr_va(const char *fmt, va_list ap)
 	pgui_errmsg[GUIMSG_LINE_MAXLEN] = '\0';
 }
 
-static void
+void
 pgui_seterr(const char *fmt, ...)
 {
 	va_list ap;

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

Summary of changes:
 loader/shp2pgsql-gui.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list