1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-25 00:45:20 +02:00

qpkg: use -Wmissing-prototypes

- Makefile (CFLAGS): use -Wmissing-prototypes
- jrb.c (lprev, rprev): made "static"
- prereq.c: include prereq.h
This commit is contained in:
Werner Almesberger 2010-11-19 20:51:49 -03:00
parent 47abebe364
commit a8ed4dcb23
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
CFLAGS = -Wall -Wshadow -g -O
CFLAGS = -Wall -Wshadow -Wmissing-prototypes -g -O
# -O, so that we get data flow analysis, which helps to find more bugs
#LDFLAGS=-pg

View File

@ -228,7 +228,7 @@ static void mk_new_int(struct jrb *l, struct jrb *r, struct jrb *p, int il)
}
struct jrb *lprev(struct jrb *n)
static struct jrb *lprev(struct jrb *n)
{
if (ishead(n))
return n;
@ -241,7 +241,7 @@ struct jrb *lprev(struct jrb *n)
}
struct jrb *rprev(struct jrb *n)
static struct jrb *rprev(struct jrb *n)
{
if (ishead(n))
return n;

View File

@ -7,6 +7,7 @@
#include "id.h"
#include "qpkg.h"
#include "util.h"
#include "prereq.h"
struct list {