1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:05:21 +02:00

b2/: use -Wextra (and fix places where this caused trouble)

This commit is contained in:
Werner Almesberger 2012-05-23 18:48:59 -03:00
parent 66aea07f23
commit 24abc2c49c
4 changed files with 4 additions and 1 deletions

View File

@ -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 \

View File

@ -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));

View File

@ -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);
}

View File

@ -20,6 +20,7 @@
int eval_name(const struct format *fmt, const char *s, struct value *res)
{
(void) fmt;
res->u.s = s;
return 1;
}