diff options
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg_ctl/pg_ctl.c | 6 | ||||
| -rw-r--r-- | src/bin/pg_dump/parallel.c | 6 | ||||
| -rw-r--r-- | src/bin/pg_dump/pg_backup.h | 5 | ||||
| -rw-r--r-- | src/bin/pg_dump/pg_backup_utils.h | 14 | ||||
| -rw-r--r-- | src/bin/pg_rewind/logging.h | 6 | ||||
| -rw-r--r-- | src/bin/psql/common.h | 5 | ||||
| -rw-r--r-- | src/bin/psql/large_obj.c | 4 |
7 files changed, 12 insertions, 34 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 052caffe8d..8202633d05 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -116,11 +116,7 @@ static pid_t postmasterPID = -1; #endif -static void -write_stderr(const char *fmt,...) -/* This extension allows gcc to check the format string for consistency with - the supplied arguments. */ -pg_attribute_printf(1, 2); +static void write_stderr(const char *fmt,...) pg_attribute_printf(1, 2); static void do_advice(void); static void do_help(void); static void set_mode(char *modeopt); diff --git a/src/bin/pg_dump/parallel.c b/src/bin/pg_dump/parallel.c index f58f96b063..ff823e5ab2 100644 --- a/src/bin/pg_dump/parallel.c +++ b/src/bin/pg_dump/parallel.c @@ -78,10 +78,8 @@ static ShutdownInformation shutdown_info; static const char *modulename = gettext_noop("parallel archiver"); static ParallelSlot *GetMyPSlot(ParallelState *pstate); -static void -parallel_msg_master(ParallelSlot *slot, const char *modulename, - const char *fmt, va_list ap) -pg_attribute_printf(3, 0); +static void parallel_msg_master(ParallelSlot *slot, const char *modulename, + const char *fmt, va_list ap) pg_attribute_printf(3, 0); static void archive_close_connection(int code, void *arg); static void ShutdownWorkersHard(ParallelState *pstate); static void WaitForTerminatingWorkers(ParallelState *pstate); diff --git a/src/bin/pg_dump/pg_backup.h b/src/bin/pg_dump/pg_backup.h index d484236c4f..80df8fcefd 100644 --- a/src/bin/pg_dump/pg_backup.h +++ b/src/bin/pg_dump/pg_backup.h @@ -277,10 +277,7 @@ extern void SortTocFromFile(Archive *AHX, RestoreOptions *ropt); /* Convenience functions used only when writing DATA */ extern void archputs(const char *s, Archive *AH); -extern int -archprintf(Archive *AH, const char *fmt,...) -/* This extension allows gcc to check the format string */ -pg_attribute_printf(2, 3); +extern int archprintf(Archive *AH, const char *fmt,...) pg_attribute_printf(2, 3); #define appendStringLiteralAH(buf,str,AH) \ appendStringLiteral(buf, str, (AH)->encoding, (AH)->std_strings) diff --git a/src/bin/pg_dump/pg_backup_utils.h b/src/bin/pg_dump/pg_backup_utils.h index 2e9a69a615..0df0936c91 100644 --- a/src/bin/pg_dump/pg_backup_utils.h +++ b/src/bin/pg_dump/pg_backup_utils.h @@ -28,17 +28,11 @@ typedef void (*on_exit_nicely_callback) (int code, void *arg); extern const char *progname; extern void set_dump_section(const char *arg, int *dumpSections); -extern void -write_msg(const char *modulename, const char *fmt,...) -pg_attribute_printf(2, 3); -extern void -vwrite_msg(const char *modulename, const char *fmt, va_list ap) -pg_attribute_printf(2, 0); +extern void write_msg(const char *modulename, const char *fmt,...) pg_attribute_printf(2, 3); +extern void vwrite_msg(const char *modulename, const char *fmt, va_list ap) pg_attribute_printf(2, 0); extern void on_exit_nicely(on_exit_nicely_callback function, void *arg); -extern void exit_nicely(int code) pg_attribute_noreturn; +extern void exit_nicely(int code) pg_attribute_noreturn(); -extern void -exit_horribly(const char *modulename, const char *fmt,...) -pg_attribute_printf(2, 3) pg_attribute_noreturn; +extern void exit_horribly(const char *modulename, const char *fmt,...) pg_attribute_printf(2, 3) pg_attribute_noreturn(); #endif /* PG_BACKUP_UTILS_H */ diff --git a/src/bin/pg_rewind/logging.h b/src/bin/pg_rewind/logging.h index e089ac7803..0272a22039 100644 --- a/src/bin/pg_rewind/logging.h +++ b/src/bin/pg_rewind/logging.h @@ -27,10 +27,8 @@ typedef enum PG_FATAL } eLogType; -extern void pg_log(eLogType type, const char *fmt,...) -pg_attribute_printf(2, 3); -extern void pg_fatal(const char *fmt,...) -pg_attribute_printf(1, 2) pg_attribute_noreturn; +extern void pg_log(eLogType type, const char *fmt,...) pg_attribute_printf(2, 3); +extern void pg_fatal(const char *fmt,...) pg_attribute_printf(1, 2) pg_attribute_noreturn(); extern void progress_report(bool force); diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h index 54266c1cb1..cdb0187feb 100644 --- a/src/bin/psql/common.h +++ b/src/bin/psql/common.h @@ -18,10 +18,7 @@ extern bool setQFout(const char *fname); -extern void -psql_error(const char *fmt,...) -/* This lets gcc check the format string for consistency. */ -pg_attribute_printf(1, 2); +extern void psql_error(const char *fmt,...) pg_attribute_printf(1, 2); extern void NoticeProcessor(void *arg, const char *message); diff --git a/src/bin/psql/large_obj.c b/src/bin/psql/large_obj.c index 48d2d77a5e..621d632059 100644 --- a/src/bin/psql/large_obj.c +++ b/src/bin/psql/large_obj.c @@ -12,9 +12,7 @@ #include "settings.h" #include "common.h" -static void -print_lo_result(const char *fmt,...) -pg_attribute_printf(1, 2); +static void print_lo_result(const char *fmt,...) pg_attribute_printf(1, 2); static void print_lo_result(const char *fmt,...) |
