diff --git a/usr.bin/lockf/Makefile b/usr.bin/lockf/Makefile index 77d89c45bbdf..b0df209a29b9 100644 --- a/usr.bin/lockf/Makefile +++ b/usr.bin/lockf/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ PROG= lockf -CFLAGS+=-Wall +WARNS?= 2 .include diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c index 0a91048cafc4..6c08ff91fcc0 100644 --- a/usr.bin/lockf/lockf.c +++ b/usr.bin/lockf/lockf.c @@ -193,7 +193,7 @@ killed(int sig) * Signal handler for SIGALRM. */ static void -timeout(int sig) +timeout(int sig __unused) { timed_out = 1; } diff --git a/usr.bin/mktemp/Makefile b/usr.bin/mktemp/Makefile index 76ebee6f360b..b4d6a2fb9633 100644 --- a/usr.bin/mktemp/Makefile +++ b/usr.bin/mktemp/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ PROG= mktemp +WARNS?= 2 .include diff --git a/usr.bin/mktemp/mktemp.c b/usr.bin/mktemp/mktemp.c index 3fe079f380b7..d20ca3dfcdbb 100644 --- a/usr.bin/mktemp/mktemp.c +++ b/usr.bin/mktemp/mktemp.c @@ -52,7 +52,8 @@ int main(int argc, char **argv) { int c, fd, ret; - char *tmpdir, *prefix; + char *tmpdir; + const char *prefix; char *name; int dflag, qflag, tflag, uflag; diff --git a/usr.bin/ncplogin/Makefile b/usr.bin/ncplogin/Makefile index 8795f29f3ad1..a2473b727090 100644 --- a/usr.bin/ncplogin/Makefile +++ b/usr.bin/ncplogin/Makefile @@ -2,6 +2,7 @@ PROG= ncplogin MAN= ncplogin.1 ncplogout.1 +WARNS?= 2 LINKS= ${BINDIR}/ncplogin ${BINDIR}/ncplogout diff --git a/usr.bin/ncplogin/ncplogin.c b/usr.bin/ncplogin/ncplogin.c index 3841dcc90321..3302473b0c58 100644 --- a/usr.bin/ncplogin/ncplogin.c +++ b/usr.bin/ncplogin/ncplogin.c @@ -47,14 +47,14 @@ extern char *__progname; static void -login_usage() { +login_usage(void) { printf("usage: %s [-Dh] [-A host] [-BCN] [-I level] [-M mode] \n" " [-R retrycount] [-W timeout] /server:user\n", __progname); exit(1); } static void -logout_usage() { +logout_usage(void) { printf("usage: %s [-c handle] [-h] [/server:user]\n", __progname); exit(1); }