mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 00:30:38 +00:00
add format checking to our printf style functions and correct the consequences
of this.
This commit is contained in:
parent
811744c473
commit
ee3f88d57d
11 changed files with 69 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue