mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
Valgrind and gcc -O:
- stralloc_vprintf: used snprintf instead of vsnprintf. Oops ! - build_frames: didn't initialize "n" - added a few initializations to stop gcc from complaining git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5382 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
2
expr.c
2
expr.c
@@ -182,6 +182,7 @@ static struct num compatible_sum(struct num *a, struct num *b)
|
||||
}
|
||||
res.type = a->type;
|
||||
res.exponent = a->exponent;
|
||||
res.n = 0; /* keep gcc happy */
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -203,6 +204,7 @@ static struct num compatible_mult(struct num *a, struct num *b,
|
||||
}
|
||||
res.type = a->type;
|
||||
res.exponent = exponent;
|
||||
res.n = 0; /* keep gcc happy */
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user