From dd29e705f8661953040ccb67462841bad2cf3ff3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 29 May 2022 02:33:28 +0300 Subject: [PATCH] engine: menu_int: add _format and NORETURN attributes to MenuAPI --- engine/menu_int.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/menu_int.h b/engine/menu_int.h index ee48ed48..cdb918bf 100644 --- a/engine/menu_int.h +++ b/engine/menu_int.h @@ -87,10 +87,10 @@ typedef struct ui_enginefuncs_s const char* (*pfnCmd_Args)( void ); // debug messages (in-menu shows only notify) - void (*Con_Printf)( const char *fmt, ... ); - void (*Con_DPrintf)( const char *fmt, ... ); - void (*Con_NPrintf)( int pos, const char *fmt, ... ); - void (*Con_NXPrintf)( struct con_nprint_s *info, const char *fmt, ... ); + void (*Con_Printf)( const char *fmt, ... ) _format( 1 ); + void (*Con_DPrintf)( const char *fmt, ... ) _format( 1 ); + void (*Con_NPrintf)( int pos, const char *fmt, ... ) _format( 2 ); + void (*Con_NXPrintf)( struct con_nprint_s *info, const char *fmt, ... ) _format( 2 ); // sound handlers void (*pfnPlayLocalSound)( const char *szSound ); @@ -116,7 +116,7 @@ typedef struct ui_enginefuncs_s int (*CL_CreateVisibleEntity)( int type, struct cl_entity_s *ent ); // misc handlers - void (*pfnHostError)( const char *szFmt, ... ); + void (*pfnHostError)( const char *szFmt, ... ) _format( 1 ) NORETURN; int (*pfnFileExists)( const char *filename, int gamedironly ); void (*pfnGetGameDir)( char *szGetGameDir );