diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-07-18 14:56:57 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 22:30:51 +0000 |
commit | 61d3cdbb34ed7ebaa9a9a3c4f13595488b80c8f5 (patch) | |
tree | d44aabf9275f27eacbf6b877eed878a4ae3ee671 /src/renderer | |
parent | 2e4f58b4422995f703e51aa92a7e49d0d0664f00 (diff) |
Bug 4812 - GCC __attribute__ annotations for printf, non-returning functions etc., patch by linux@youmustbejoking.demon.co.uk and Zack Middleton
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/tr_public.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/tr_public.h b/src/renderer/tr_public.h index 1a7d93c2..b1ccfbc1 100644 --- a/src/renderer/tr_public.h +++ b/src/renderer/tr_public.h @@ -108,10 +108,10 @@ typedef struct { // typedef struct { // print message on the local console - void (QDECL *Printf)( int printLevel, const char *fmt, ...); + void (QDECL *Printf)( int printLevel, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); // abort the game - void (QDECL *Error)( int errorLevel, const char *fmt, ...); + void (QDECL *Error)( int errorLevel, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); // milliseconds should only be used for profiling, never // for anything game related. Get time from the refdef |