silencing static analysis warnings.

This commit is contained in:
David Carlier 2023-01-30 20:21:17 +00:00
parent 2e939b10e9
commit 2e51a9f72f
3 changed files with 6 additions and 6 deletions

View file

@ -340,7 +340,7 @@ GetPCXPalette (byte **colormap, unsigned *d_8to24table)
g = pal[i*3+1];
b = pal[i*3+2];
v = (255<<24) + (r<<0) + (g<<8) + (b<<16);
v = (255U<<24) + (r<<0) + (g<<8) + (b<<16);
d_8to24table[i] = LittleLong(v);
}

View file

@ -518,9 +518,9 @@ static int
R_ClipPolyFace (int nump, clipplane_t *pclipplane)
{
int i, outcount;
float dists[MAXWORKINGVERTS+3];
float frac, clipdist, *pclipnormal;
float *in, *instep, *outstep, *vert2;
float dists[MAXWORKINGVERTS+3] = {0};
clipdist = pclipplane->dist;
pclipnormal = pclipplane->normal;

View file

@ -250,10 +250,10 @@ Netchan_Transmit(netchan_t *chan, int length, byte *data)
/* write the packet header */
SZ_Init(&send, send_buf, sizeof(send_buf));
w1 = (chan->outgoing_sequence & ~(1 << 31)) | (send_reliable << 31);
w1 = (chan->outgoing_sequence & ~(1U << 31)) | (send_reliable << 31);
w2 =
(chan->incoming_sequence &
~(1 << 31)) | (chan->incoming_reliable_sequence << 31);
~(1U << 31)) | (chan->incoming_reliable_sequence << 31);
chan->outgoing_sequence++;
chan->last_sent = curtime;
@ -330,8 +330,8 @@ Netchan_Process(netchan_t *chan, sizebuf_t *msg)
reliable_message = sequence >> 31;
reliable_ack = sequence_ack >> 31;
sequence &= ~(1 << 31);
sequence_ack &= ~(1 << 31);
sequence &= ~(1U << 31);
sequence_ack &= ~(1U << 31);
if (showpackets->value)
{