mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-31 09:01:54 +00:00
Fix some of the things clang --analyze flagged
This commit is contained in:
parent
352cd151e0
commit
98360bcd57
34 changed files with 58 additions and 112 deletions
|
@ -309,8 +309,8 @@ ClipWindingEpsilon
|
|||
void ClipWindingEpsilon (winding_t *in, vec3_t normal, vec_t dist,
|
||||
vec_t epsilon, winding_t **front, winding_t **back)
|
||||
{
|
||||
vec_t dists[MAX_POINTS_ON_WINDING+4];
|
||||
int sides[MAX_POINTS_ON_WINDING+4];
|
||||
vec_t dists[MAX_POINTS_ON_WINDING+4] = { 0 };
|
||||
int sides[MAX_POINTS_ON_WINDING+4] = { 0 };
|
||||
int counts[3];
|
||||
static vec_t dot; // VC 4.2 optimizer bug if not static
|
||||
int i, j;
|
||||
|
@ -421,8 +421,8 @@ ChopWindingInPlace
|
|||
void ChopWindingInPlace (winding_t **inout, vec3_t normal, vec_t dist, vec_t epsilon)
|
||||
{
|
||||
winding_t *in;
|
||||
vec_t dists[MAX_POINTS_ON_WINDING+4];
|
||||
int sides[MAX_POINTS_ON_WINDING+4];
|
||||
vec_t dists[MAX_POINTS_ON_WINDING+4] = { 0 };
|
||||
int sides[MAX_POINTS_ON_WINDING+4] = { 0 };
|
||||
int counts[3];
|
||||
static vec_t dot; // VC 4.2 optimizer bug if not static
|
||||
int i, j;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue