Use WARNS level 2 instead of setting CFLAGS explicitly to -Wall.

This commit is contained in:
Dag-Erling Smørgrav 2003-12-07 17:34:52 +00:00
parent 96c65ccb2f
commit 76e762998c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123243
2 changed files with 22 additions and 22 deletions

View File

@ -4,6 +4,6 @@
PROG= strfile
MAN= strfile.8
MLINKS= strfile.8 unstr.8
CFLAGS+= -Wall
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -105,37 +105,37 @@ __FBSDID("$FreeBSD$");
#endif
typedef struct {
char first;
int first;
long pos;
} STR;
char *Infile = NULL, /* input file name */
Outfile[MAXPATHLEN] = "", /* output file name */
Delimch = '%'; /* delimiting character */
static char *Infile = NULL, /* input file name */
Outfile[MAXPATHLEN] = "", /* output file name */
Delimch = '%'; /* delimiting character */
int Cflag = FALSE; /* embedded comments */
int Sflag = FALSE; /* silent run flag */
int Oflag = FALSE; /* ordering flag */
int Iflag = FALSE; /* ignore case flag */
int Rflag = FALSE; /* randomize order flag */
int Xflag = FALSE; /* set rotated bit */
long Num_pts = 0; /* number of pointers/strings */
static int Cflag = FALSE; /* embedded comments */
static int Sflag = FALSE; /* silent run flag */
static int Oflag = FALSE; /* ordering flag */
static int Iflag = FALSE; /* ignore case flag */
static int Rflag = FALSE; /* randomize order flag */
static int Xflag = FALSE; /* set rotated bit */
static long Num_pts = 0; /* number of pointers/strings */
long *Seekpts;
static long *Seekpts;
FILE *Sort_1, *Sort_2; /* pointers for sorting */
static FILE *Sort_1, *Sort_2; /* pointers for sorting */
STRFILE Tbl; /* statistics table */
static STRFILE Tbl; /* statistics table */
STR *Firstch; /* first chars of each string */
static STR *Firstch; /* first chars of each string */
void add_offset(FILE *, long);
int cmp_str(const void *, const void *);
static void add_offset(FILE *, long);
static int cmp_str(const void *, const void *);
static int stable_collate_range_cmp(int, int);
void do_order(void);
void getargs(int, char **);
void randomize(void);
void usage(void);
static void do_order(void);
static void getargs(int, char **);
static void randomize(void);
static void usage(void);
/*
* main: