fix clang 16 build as C11 _NoReturn/noreturn attributes conflict.

And remove a handful of unused vars.
This commit is contained in:
David CARLIER 2023-04-16 08:19:33 +01:00
parent c2d80c64ee
commit 5b895615a4
4 changed files with 2 additions and 9 deletions

View file

@ -455,14 +455,12 @@ static void
OGG_Info(void)
{
Com_Printf("Tracks:\n");
int numFiles = 0;
for (int i = 2; i <= ogg_maxfileindex; i++)
{
if(ogg_tracks[i])
{
Com_Printf(" - %02d %s\n", i, ogg_tracks[i]);
++numFiles;
}
else
{

View file

@ -745,7 +745,7 @@ void Com_Printf(char *fmt, ...) PRINTF_ATTR(1, 2);
void Com_DPrintf(char *fmt, ...) PRINTF_ATTR(1, 2);
void Com_VPrintf(int print_level, const char *fmt, va_list argptr); /* print_level is PRINT_ALL or PRINT_DEVELOPER */
void Com_MDPrintf(char *fmt, ...) PRINTF_ATTR(1, 2);
YQ2_ATTR_NORETURN void Com_Error(int code, char *fmt, ...) PRINTF_ATTR(2, 3);
YQ2_ATTR_NORETURN_FUNCPTR void Com_Error(int code, char *fmt, ...) PRINTF_ATTR(2, 3);
YQ2_ATTR_NORETURN void Com_Quit(void);
/* Ugly work around for unsupported

View file

@ -513,7 +513,6 @@ SV_BuildClientFrame(client_t *client)
int l;
int clientarea, clientcluster;
int leafnum;
int c_fullsend;
byte *clientphs;
byte *bitvector;
@ -553,8 +552,6 @@ SV_BuildClientFrame(client_t *client)
frame->num_entities = 0;
frame->first_entity = svs.next_client_entities;
c_fullsend = 0;
for (e = 1; e < ge->num_edicts; e++)
{
ent = EDICT_NUM(e);
@ -608,8 +605,6 @@ SV_BuildClientFrame(client_t *client)
{
continue;
}
c_fullsend++;
}
else
{

View file

@ -149,7 +149,7 @@ PF_centerprintf(edict_t *ent, char *fmt, ...)
/*
* Abort the server with a game error
*/
YQ2_ATTR_NORETURN void
YQ2_ATTR_NORETURN_FUNCPTR void
PF_error(char *fmt, ...)
{
char msg[1024];