mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Silence the remaining warnings and clamp down with WARNS=2.
Not objected to by: -audit
This commit is contained in:
parent
a7d81577d6
commit
41ff7633ea
2 changed files with 6 additions and 4 deletions
|
|
@ -1,6 +1,8 @@
|
|||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
# From: @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= cut
|
||||
CFLAGS+=-Wall
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
|
|
@ -172,8 +172,8 @@ get_list(list)
|
|||
if (!stop || !start)
|
||||
errx(1, "[-cf] list: values may not include zero");
|
||||
if (stop > _POSIX2_LINE_MAX)
|
||||
errx(1, "[-cf] list: %d too large (max %d)",
|
||||
stop, _POSIX2_LINE_MAX);
|
||||
errx(1, "[-cf] list: %ld too large (max %d)",
|
||||
(long)stop, _POSIX2_LINE_MAX);
|
||||
if (maxval < stop)
|
||||
maxval = stop;
|
||||
for (pos = positions + start; start++ <= stop; *pos++ = 1);
|
||||
|
|
@ -223,7 +223,7 @@ c_cut(fp, fname)
|
|||
void
|
||||
f_cut(fp, fname)
|
||||
FILE *fp;
|
||||
const char *fname;
|
||||
const char *fname __unused;
|
||||
{
|
||||
int ch, field, isdelim;
|
||||
char *pos, *p, sep;
|
||||
|
|
|
|||
Loading…
Reference in a new issue