mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 09:39:42 +02:00
b2/: use -Wextra (and fix places where this caused trouble)
This commit is contained in:
parent
66aea07f23
commit
24abc2c49c
@ -11,7 +11,7 @@
|
||||
|
||||
SHELL = /bin/bash
|
||||
|
||||
CFLAGS = -g -Wall $(shell pkg-config --cflags glib-2.0)
|
||||
CFLAGS = -g -Wall -Wextra $(shell pkg-config --cflags glib-2.0)
|
||||
SLOPPY = -Wno-unused -Wno-implicit-function-declaration
|
||||
OBJS = bom.o boom.o chr.o comp.o db.o dump.o eval.o param.o relop.o \
|
||||
subex.o subst.o util.o \
|
||||
|
1
b2/db.c
1
b2/db.c
@ -356,6 +356,7 @@ static gboolean sel_prm_traverse(gpointer key, gpointer value, gpointer data)
|
||||
struct part *p = key;
|
||||
struct sel_prm_data *d = data;
|
||||
|
||||
(void) value;
|
||||
if (!params_match(d->param, p->param))
|
||||
return FALSE;
|
||||
d->res = realloc(d->res, sizeof(const struct part *)*(d->n_res+1));
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
void dump_name(FILE *file, const struct format *fmt, const struct value *v)
|
||||
{
|
||||
(void) fmt;
|
||||
fprintf(file, "%s", v->u.s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user