Bug 4812 - GCC __attribute__ annotations for printf, non-returning functions etc., patch by linux@youmustbejoking.demon.co.uk and Zack Middleton
This commit is contained in:
1 parent
69a7ada911
commit
9dc32d55e2
30 files changed
+63
-61
No files matched your search
@@ -310,7 +310,7 @@ extern cvar_t *sv_voip;
|
||||
// sv_main.c
|
||||
//
|
||||
void SV_FinalMessage (char *message);
|
||||
void QDECL SV_SendServerCommand( client_t *cl, const char *fmt, ...);
|
||||
void QDECL SV_SendServerCommand( client_t *cl, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
|
||||
|
||||
void SV_AddOperatorCommands (void);
|
||||
|
||||
@@ -133,7 +133,7 @@ void BotDrawDebugPolygons(void (*drawPoly)(int color, int numPoints, float *poin
|
||||
BotImport_Print
|
||||
==================
|
||||
*/
|
||||
static void QDECL BotImport_Print(int type, char *fmt, ...)
|
||||
static __attribute__ ((format (printf, 2, 3))) void QDECL BotImport_Print(int type, char *fmt, ...)
|
||||
{
|
||||
char str[2048];
|
||||
va_list ap;
|
||||
|
||||
@@ -68,7 +68,7 @@ static void SV_RankEncodeGameID( uint64_t game_id, char* result,
|
||||
static uint64_t SV_RankDecodePlayerID( const char* string );
|
||||
static void SV_RankDecodePlayerKey( const char* string, GR_PLAYER_TOKEN key );
|
||||
static char* SV_RankStatusString( GR_STATUS status );
|
||||
static void SV_RankError( const char* fmt, ... );
|
||||
static void SV_RankError( const char* fmt, ... ) __attribute__ ((format (printf, 1, 2)));
|
||||
static char SV_RankGameKey[64];
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user