Fix some of the things clang --analyze flagged
This commit is contained in:
1 parent
352cd151e0
commit
98360bcd57
34 files changed
+58
-112
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user