mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-22 14:44:04 +02: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:
parent
7674be9b10
commit
3d2748a623
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;
|
||||
}
|
||||
|
||||
|
2
gui.c
2
gui.c
@ -576,7 +576,7 @@ static void build_frames(GtkWidget *vbox)
|
||||
{
|
||||
struct frame *frame;
|
||||
GtkWidget *tab, *label, *refs, *vars;
|
||||
int n;
|
||||
int n = 0;
|
||||
|
||||
destroy_all_children(GTK_CONTAINER(vbox));
|
||||
for (frame = frames; frame; frame = frame->next)
|
||||
|
3
inst.c
3
inst.c
@ -126,7 +126,8 @@ int inst_select(const struct draw_ctx *ctx, struct coord pos)
|
||||
{
|
||||
enum inst_prio prio;
|
||||
struct inst *inst;
|
||||
int best_dist, dist;
|
||||
int best_dist = 0; /* keep gcc happy */
|
||||
int dist;
|
||||
|
||||
deselect_outside();
|
||||
edit_nothing();
|
||||
|
Loading…
Reference in New Issue
Block a user