mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 11:21:52 +00:00
Merge pull request #970 from devnexen/silent_analyzers
silencing static analysis warnings.
This commit is contained in:
commit
74bb325deb
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue