mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-25 02:52:06 +00:00
Fix a warning that got through
I forgot to compile test in optimized...
This commit is contained in:
parent
bd6dcafdc8
commit
a65d6bce09
1 changed files with 4 additions and 2 deletions
|
@ -155,7 +155,7 @@ parse_params (type_t *type, param_t *parms)
|
||||||
{
|
{
|
||||||
param_t *p;
|
param_t *p;
|
||||||
type_t *new;
|
type_t *new;
|
||||||
int count;
|
int count = 0;
|
||||||
|
|
||||||
new = new_type ();
|
new = new_type ();
|
||||||
new->type = ev_func;
|
new->type = ev_func;
|
||||||
|
@ -168,7 +168,9 @@ parse_params (type_t *type, param_t *parms)
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
new->t.func.param_types = malloc (count * sizeof (type_t));
|
if (count) {
|
||||||
|
new->t.func.param_types = malloc (count * sizeof (type_t));
|
||||||
|
}
|
||||||
for (p = parms; p; p = p->next) {
|
for (p = parms; p; p = p->next) {
|
||||||
if (!p->selector && !p->type && !p->name) {
|
if (!p->selector && !p->type && !p->name) {
|
||||||
if (p->next)
|
if (p->next)
|
||||||
|
|
Loading…
Reference in a new issue