summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2013-01-12 23:55:21 +0000
committerTim Angus <tim@ngus.net>2013-01-12 23:55:21 +0000
commit0f43dc6df58569ceb32475c4a4009ea6de437923 (patch)
treedc2f7b0e108658f1591409ffed95b8e340f8cc12 /src/ui
parent16b581e90f1df605141d157edad1a75b4594f479 (diff)
Fix a bunch of warnings
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_shared.c4
-rw-r--r--src/ui/ui_shared.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c
index b98127ce..fe336b95 100644
--- a/src/ui/ui_shared.c
+++ b/src/ui/ui_shared.c
@@ -326,7 +326,7 @@ void String_Init( void )
PC_SourceWarning
=================
*/
-void PC_SourceWarning( int handle, char *format, ... )
+__attribute__ ((format (printf, 2, 3))) void PC_SourceWarning( int handle, char *format, ... )
{
int line;
char filename[128];
@@ -349,7 +349,7 @@ void PC_SourceWarning( int handle, char *format, ... )
PC_SourceError
=================
*/
-void PC_SourceError( int handle, char *format, ... )
+__attribute__ ((format (printf, 2, 3))) void PC_SourceError( int handle, char *format, ... )
{
int line;
char filename[128];
diff --git a/src/ui/ui_shared.h b/src/ui/ui_shared.h
index 649d51f1..eedbfd36 100644
--- a/src/ui/ui_shared.h
+++ b/src/ui/ui_shared.h
@@ -431,8 +431,8 @@ typedef struct
void ( *getBindingBuf )( int keynum, char *buf, int buflen );
void ( *setBinding )( int keynum, const char *binding );
void ( *executeText )( int exec_when, const char *text );
- void ( *Error )( int level, const char *error, ... );
- void ( *Print )( const char *msg, ... );
+ void ( *Error )( int level, const char *error, ... ) __attribute__ ((format (printf, 2, 3)));
+ void ( *Print )( const char *msg, ... ) __attribute__ ((format (printf, 1, 2)));
void ( *Pause )( qboolean b );
int ( *ownerDrawWidth )( int ownerDraw, float scale );
const char *( *ownerDrawText )( int ownerDraw );