From ea988ee8c8b191615e730f930bcde6144a598688 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 25 Mar 2013 10:06:03 +0200 Subject: [PATCH] Add PF_PRINTF_ATTRIBUTE to on_exit_msg_fmt. Per warning from -Wmissing-format-attribute. --- src/bin/pg_dump/dumputils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_dump/dumputils.h b/src/bin/pg_dump/dumputils.h index 027ed1c7ce..6b82db2adb 100644 --- a/src/bin/pg_dump/dumputils.h +++ b/src/bin/pg_dump/dumputils.h @@ -44,7 +44,8 @@ typedef void (*on_exit_nicely_callback) (int code, void *arg); extern int quote_all_identifiers; extern const char *progname; -extern void (*on_exit_msg_func) (const char *modulename, const char *fmt, va_list ap); +extern void (*on_exit_msg_func) (const char *modulename, const char *fmt, va_list ap) +__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 0))); extern void init_parallel_dump_utils(void); extern const char *fmtId(const char *identifier); -- 2.40.0