Add gcc attribute format where it's missing
This commit is contained in:
parent
eb252201b6
commit
1d9aac2cf9
4 changed files with 8 additions and 2 deletions
|
@ -43,7 +43,8 @@ struct xdstr {
|
|||
natid cnum; /* dump for this country */
|
||||
int divine; /* is this a deity dump? */
|
||||
int human; /* dump human-readable format */
|
||||
void (*pr)(char *fmt, ...); /* callback for printing dump */
|
||||
void (*pr)(char *fmt, ...) /* callback for printing dump */
|
||||
ATTRIBUTE((format (printf, 1, 2)));
|
||||
};
|
||||
|
||||
struct xdstr *xdinit(struct xdstr *, natid, int, void (*)(char *, ...));
|
||||
|
|
|
@ -172,6 +172,7 @@ static void **ppvUserData;
|
|||
/* Global flags. From empth_init parameter. */
|
||||
static int global_flags;
|
||||
|
||||
static void loc_debug(const char *, ...) ATTRIBUTE((format(printf, 1, 2)));
|
||||
|
||||
/************************
|
||||
* loc_debug
|
||||
|
|
|
@ -64,6 +64,9 @@
|
|||
static char journal_fname[] = "journal.log";
|
||||
static FILE *journal;
|
||||
|
||||
static void journal_entry(char *fmt, ...)
|
||||
ATTRIBUTE((format (printf, 1, 2)));
|
||||
|
||||
static FILE *
|
||||
journal_open(void)
|
||||
{
|
||||
|
|
|
@ -45,7 +45,8 @@
|
|||
#include "version.h"
|
||||
#include "xdump.h"
|
||||
|
||||
static void exit_bad_arg(char *, ...) ATTRIBUTE((noreturn));
|
||||
static void exit_bad_arg(char *, ...)
|
||||
ATTRIBUTE((noreturn, format (printf, 1, 2)));
|
||||
static void dump_table(int, int);
|
||||
static void pln_fixup(void);
|
||||
static void lnd_fixup(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue