summaryrefslogtreecommitdiff
path: root/src/client/cl_main.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-18 14:56:57 +0000
committerTim Angus <tim@ngus.net>2013-01-10 22:30:51 +0000
commit61d3cdbb34ed7ebaa9a9a3c4f13595488b80c8f5 (patch)
treed44aabf9275f27eacbf6b877eed878a4ae3ee671 /src/client/cl_main.c
parent2e4f58b4422995f703e51aa92a7e49d0d0664f00 (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/client/cl_main.c')
-rw-r--r--src/client/cl_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c
index 1f95b7e0..ad1acc83 100644
--- a/src/client/cl_main.c
+++ b/src/client/cl_main.c
@@ -2646,7 +2646,7 @@ Responses to broadcasts, etc
void CL_ConnectionlessPacket( netadr_t from, msg_t *msg ) {
char *s;
char *c;
- int challenge;
+ int challenge = 0;
MSG_BeginReadingOOB( msg );
MSG_ReadLong( msg ); // skip the -1
@@ -3096,7 +3096,7 @@ CL_RefPrintf
DLL glue
================
*/
-void QDECL CL_RefPrintf( int print_level, const char *fmt, ...) {
+static __attribute__ ((format (printf, 2, 3))) void QDECL CL_RefPrintf( int print_level, const char *fmt, ...) {
va_list argptr;
char msg[MAXPRINTMSG];