mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-25 00:28:06 +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:
parent
47abebe364
commit
a8ed4dcb23
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "id.h"
|
||||
#include "qpkg.h"
|
||||
#include "util.h"
|
||||
#include "prereq.h"
|
||||
|
||||
|
||||
struct list {
|
||||
|
Loading…
Reference in New Issue
Block a user