Merge pull request #970 from devnexen/silent_analyzers

silencing static analysis warnings.
This commit is contained in:
Yamagi 2023-02-04 17:42:37 +01:00 committed by GitHub
commit 74bb325deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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]; g = pal[i*3+1];
b = pal[i*3+2]; 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); d_8to24table[i] = LittleLong(v);
} }

View file

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

View file

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