Content-Length: 261904 | pFad | http://github.com/postgrespro/postgres/commit/ea988ee8c8b191615e730f930bcde6144a598688

32 Add PF_PRINTF_ATTRIBUTE to on_exit_msg_fmt. · postgrespro/postgres@ea988ee · GitHub
Skip to content

Commit ea988ee

Browse files
committed
Add PF_PRINTF_ATTRIBUTE to on_exit_msg_fmt.
Per warning from -Wmissing-format-attribute.
1 parent 4eefd0f commit ea988ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_dump/dumputils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ typedef void (*on_exit_nicely_callback) (int code, void *arg);
4444

4545
extern int quote_all_identifiers;
4646
extern const char *progname;
47-
extern void (*on_exit_msg_func) (const char *modulename, const char *fmt, va_list ap);
47+
extern void (*on_exit_msg_func) (const char *modulename, const char *fmt, va_list ap)
48+
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 0)));
4849

4950
extern void init_parallel_dump_utils(void);
5051
extern const char *fmtId(const char *identifier);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ea988ee8c8b191615e730f930bcde6144a598688

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy