add format checking to our printf style functions and correct the consequences

of this.
This commit is contained in:
Bill Currie 2000-06-17 12:27:59 +00:00
parent 811744c473
commit ee3f88d57d
11 changed files with 69 additions and 23 deletions

View file

@ -29,6 +29,7 @@
#ifndef _PROGS_H
#define _PROGS_H
#include "gcc_attr.h"
#include "protocol.h"
#include "pr_comp.h" // defs shared with qcc
#include "progdefs.h" // generated by program cdefs
@ -140,7 +141,7 @@ extern func_t SpectatorConnect;
extern func_t SpectatorThink;
extern func_t SpectatorDisconnect;
void PR_RunError (char *error, ...);
void PR_RunError (char *error, ...) __attribute__((format(printf,1,2)));
void ED_PrintEdicts (void);
void ED_PrintNum (int ent);