Add gcc attribute format where it's missing

This commit is contained in:
Markus Armbruster 2008-08-02 12:00:33 -04:00
parent eb252201b6
commit 1d9aac2cf9
4 changed files with 8 additions and 2 deletions

View file

@ -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 *, ...));