Date:2010-11-20 00:51:49 (8 years 6 months ago)
Author:Werner Almesberger
Commit:a8ed4dcb233bfd0ed5f03d54b0f25d61eb3f74cf
Message:qpkg: use -Wmissing-prototypes

- Makefile (CFLAGS): use -Wmissing-prototypes
- jrb.c (lprev, rprev): made "static"
- prereq.c: include prereq.h
Files: qpkg/Makefile (1 diff)
qpkg/jrb.c (2 diffs)
qpkg/prereq.c (1 diff)

Change Details

qpkg/Makefile
1CFLAGS = -Wall -Wshadow -g -O
1CFLAGS = -Wall -Wshadow -Wmissing-prototypes -g -O
22# -O, so that we get data flow analysis, which helps to find more bugs
33#LDFLAGS=-pg
44
qpkg/jrb.c
228228}
229229
230230
231struct jrb *lprev(struct jrb *n)
231static struct jrb *lprev(struct jrb *n)
232232{
233233    if (ishead(n))
234234        return n;
...... 
241241}
242242
243243
244struct jrb *rprev(struct jrb *n)
244static struct jrb *rprev(struct jrb *n)
245245{
246246    if (ishead(n))
247247        return n;
qpkg/prereq.c
77#include "id.h"
88#include "qpkg.h"
99#include "util.h"
10#include "prereq.h"
1011
1112
1213struct list {

Archive Download the corresponding diff file

Branches:
master



interactive