Browse Source

engine: remove mistakingly placed NORETURN attributes

pull/2/head
Alibek Omarov 2 years ago
parent
commit
3d5aa7c20c
  1. 2
      engine/client/client.h
  2. 2
      engine/common/common.h
  3. 2
      engine/common/system.h
  4. 7
      engine/menu_int.h
  5. 2
      engine/ref_api.h

2
engine/client/client.h

@ -702,7 +702,7 @@ dlight_t *CL_GetEntityLight( int number ); @@ -702,7 +702,7 @@ dlight_t *CL_GetEntityLight( int number );
//
// cl_cmds.c
//
void CL_Quit_f( void ) NORETURN;
void CL_Quit_f( void );
void CL_ScreenShot_f( void );
void CL_SnapShot_f( void );
void CL_PlayCDTrack_f( void );

2
engine/common/common.h

@ -569,7 +569,7 @@ void Host_WriteConfig( void ); @@ -569,7 +569,7 @@ void Host_WriteConfig( void );
qboolean Host_IsLocalGame( void );
qboolean Host_IsLocalClient( void );
void Host_ShutdownServer( void );
void Host_Error( const char *error, ... ) _format( 1 ) NORETURN;
void Host_Error( const char *error, ... ) _format( 1 );
void Host_PrintEngineFeatures( void );
void Host_Frame( float time );
void Host_InitDecals( void );

2
engine/common/system.h

@ -51,7 +51,7 @@ char *Sys_GetClipboardData( void ); @@ -51,7 +51,7 @@ char *Sys_GetClipboardData( void );
const char *Sys_GetCurrentUser( void );
int Sys_CheckParm( const char *parm );
void Sys_Warn( const char *format, ... ) _format( 1 );
void Sys_Error( const char *error, ... ) _format( 1 ) NORETURN;
void Sys_Error( const char *error, ... ) _format( 1 );
qboolean Sys_LoadLibrary( dll_info_t *dll );
void* Sys_GetProcAddress( dll_info_t *dll, const char* name );
qboolean Sys_FreeLibrary( dll_info_t *dll );

7
engine/menu_int.h

@ -54,11 +54,6 @@ typedef struct ui_globalvars_s @@ -54,11 +54,6 @@ typedef struct ui_globalvars_s
struct ref_viewpass_s;
#if __GNUC__ == 3
#undef NORETURN
#define NORETURN
#endif // GCC 3.x have problems with noreturn attribute on function pointer
typedef struct ui_enginefuncs_s
{
// image handlers
@ -122,7 +117,7 @@ typedef struct ui_enginefuncs_s @@ -122,7 +117,7 @@ typedef struct ui_enginefuncs_s
int (*CL_CreateVisibleEntity)( int type, struct cl_entity_s *ent );
// misc handlers
void (*pfnHostError)( const char *szFmt, ... ) _format( 1 ) NORETURN;
void (*pfnHostError)( const char *szFmt, ... ) _format( 1 );
int (*pfnFileExists)( const char *filename, int gamedironly );
void (*pfnGetGameDir)( char *szGetGameDir );

2
engine/ref_api.h

@ -339,7 +339,7 @@ typedef struct ref_api_s @@ -339,7 +339,7 @@ typedef struct ref_api_s
// utils
void (*CL_ExtraUpdate)( void );
void (*Host_Error)( const char *fmt, ... ) _format( 1 ) NORETURN;
void (*Host_Error)( const char *fmt, ... ) _format( 1 );
void (*COM_SetRandomSeed)( int lSeed );
float (*COM_RandomFloat)( float rmin, float rmax );
int (*COM_RandomLong)( int rmin, int rmax );

Loading…
Cancel
Save