Switch the default WARNS level for sbin/ to 6.

Submitted by:	Ulrich Spörlein
This commit is contained in:
Ruslan Ermilov 2009-10-19 16:00:24 +00:00
parent 605c493e90
commit 106d839190
51 changed files with 25 additions and 39 deletions

View File

@ -4,7 +4,7 @@
.include <bsd.own.mk>
BINDIR?= /sbin
WARNS?= 2
WARNS?= 6
.if ${MK_DYNAMICROOT} == "no"
NO_SHARED?= YES

View File

@ -2,5 +2,6 @@
PROG= adjkerntz
MAN= adjkerntz.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= atacontrol
MAN= atacontrol.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -29,8 +29,6 @@ CLEANFILES+= oid.h
.if ${MACHINE_ARCH} == "arm"
WARNS?= 3
.else
WARNS?= 6
.endif
FILES= atmconfig.help atmconfig_device.help

View File

@ -5,5 +5,6 @@ PROG= badsect
DPADD= ${LIBUFS}
LDADD= -lufs
MAN= badsect.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -13,6 +13,7 @@ LINKS= ${BINDIR}/bsdlabel ${BINDIR}/disklabel
MLINKS= bsdlabel.8 disklabel.8
.endif
WARNS?= 2
DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF}
LDADD= -lgeom -lbsdxml -lsbuf

View File

@ -9,8 +9,6 @@ CFLAGS+= -DMINIMALISTIC
.endif
.if ${MACHINE_ARCH} == "arm"
WARNS?= 3
.else
WARNS?= 6
.endif
DPADD= ${LIBCAM} ${LIBSBUF} ${LIBUTIL}
LDADD= -lcam -lsbuf -lutil

View File

@ -1,7 +1,6 @@
# $FreeBSD$
PROG= ccdconfig
WARNS?= 6
MAN= ccdconfig.8
DPADD= ${LIBGEOM}

View File

@ -3,5 +3,6 @@
PROG= clri
MAN= clri.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -3,6 +3,5 @@
PROG= comcontrol
MAN= comcontrol.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,5 +2,6 @@
PROG= conscontrol
MAN= conscontrol.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -40,4 +40,6 @@ SCRIPTS=dhclient-script
MAN= dhclient.8 dhclient.conf.5 dhclient.leases.5 dhcp-options.5 \
dhclient-script.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -4,8 +4,6 @@
PROG= dmesg
MAN= dmesg.8
WARNS?= 6
LDADD= -lkvm
DPADD= ${LIBKVM}

View File

@ -19,5 +19,6 @@ CFLAGS+=-DRDUMP
SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c cache.c
MAN= dump.8
MLINKS= dump.8 rdump.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -2,6 +2,7 @@
# $FreeBSD$
PROG= dumpfs
WARNS?= 2
DPADD= ${LIBUFS}
LDADD= -lufs
MAN= dumpfs.8

View File

@ -1,7 +1,6 @@
# $FreeBSD$
PROG= dumpon
WARNS?= 6
MAN= dumpon.8
.include <bsd.prog.mk>

View File

@ -11,6 +11,7 @@ PROG= geom
SRCS= geom.c geom_label.c geom_part.c subr.c
NO_MAN=
WARNS?= 2
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/core -DSTATIC_GEOM_CLASSES
DPADD= ${LIBGEOM} ${LIBSBUF} ${LIBBSDXML} ${LIBUTIL}

View File

@ -1,6 +1,5 @@
# $FreeBSD$
WARNS?= 6
CLASS_DIR?=/lib/geom
.include "../Makefile.inc"

View File

@ -1,5 +1,3 @@
# $FreeBSD$
WARNS?= 6
.include "../Makefile.inc"

View File

@ -10,8 +10,6 @@ PROG= growfs
SRCS= growfs.c
MAN= growfs.8
WARNS?= 6
.if defined(GFSDBG)
SRCS+= debug.c
.endif

View File

@ -4,6 +4,7 @@ PROG= gvinum
SRCS= gvinum.c gvinum.h geom_vinum_share.c
MAN= gvinum.8
WARNS?= 2
CFLAGS+= -I${.CURDIR}/../../sys
DPADD= ${LIBREADLINE} ${LIBTERMCAP} ${LIBDEVSTAT} ${LIBKVM} ${LIBGEOM}

View File

@ -5,7 +5,6 @@ PROG= init
MAN= init.8
PRECIOUSPROG=
INSTALLFLAGS=-b -B.bak
WARNS?= 6
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT
DPADD= ${LIBUTIL} ${LIBCRYPT}
LDADD= -lutil -lcrypt

View File

@ -1,5 +1,7 @@
# $FreeBSD$
WARNS?= 2
CFLAGS+= -I${.CURDIR}/../../../contrib/ipfilter
CFLAGS+= -I${.CURDIR}/../../../contrib/ipfilter/tools
CFLAGS+= -I${.CURDIR}/../../../sys

View File

@ -5,6 +5,7 @@ PROG= iscontrol
DPADD= ${LIBCAM} ${LIBMD}
LDADD= -lcam -lmd
WARNS?= 2
CFLAGS += -I${.CURDIR}/../../sys/dev/iscsi/initiator
#CFLAGS += -g -DDEBUG

View File

@ -28,6 +28,5 @@
PROG= kldunload
MAN= kldunload.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -3,7 +3,6 @@
PROG= ldconfig
SRCS= elfhints.c ldconfig.c shlib.c support.c
LDDIR?= ${.CURDIR}/../../libexec/rtld-aout
WARNS?= 6
CFLAGS+=-I${LDDIR} -DFREEBSD_AOUT
MAN= ldconfig.8

View File

@ -11,7 +11,6 @@ MLINKS= md5.1 rmd160.1 \
md5.1 sha1.1 \
md5.1 sha256.1
WARNS?= 6
WFORMAT?= 1
DPADD= ${LIBMD}

View File

@ -4,6 +4,7 @@ PROG= mdconfig
MAN= mdconfig.8
MLINKS= mdconfig.8 vnconfig.8
WARNS?= 2
DPADD= ${LIBUTIL} ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF}
LDADD= -lutil -lgeom -lbsdxml -lsbuf

View File

@ -4,6 +4,5 @@ PROG= mdmfs
LINKS= ${BINDIR}/${PROG} ${BINDIR}/mount_mfs
MAN= mdmfs.8
MLINKS+= mdmfs.8 mount_mfs.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -6,6 +6,7 @@ PROG= mksnap_ffs
SRCS= mksnap_ffs.c getmntopts.c
MAN= mksnap_ffs.8
WARNS?= 2
CFLAGS+=-I${.CURDIR}/../mount
.if defined(NOSUID)

View File

@ -3,7 +3,6 @@
PROG= mount
SRCS= mount.c mount_fs.c getmntopts.c vfslist.c
WARNS?= 6
MAN= mount.8
# We do NOT install the getmntopts.3 man page.

View File

@ -4,5 +4,6 @@
PROG=mount_autofs
MAN=mount_autofs.8
BINDIR?=/sbin
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -9,7 +9,6 @@ LDADD= -lkiconv
MOUNT= ${.CURDIR}/../mount
CFLAGS+= -I${MOUNT}
WARNS?= 6
# Needs to be dynamically linked for optional dlopen() access to
# userland libiconv

View File

@ -5,6 +5,7 @@ PROG= mount_ext2fs
SRCS= mount_ext2fs.c getmntopts.c
MAN= mount_ext2fs.8
WARNS?= 2
MOUNT= ${.CURDIR}/../mount
CFLAGS+= -I${MOUNT}

View File

@ -10,7 +10,6 @@ LDADD= -lkiconv
MOUNT= ${.CURDIR}/../mount
CFLAGS+= -I${MOUNT}
WARNS?= 6
# Needs to be dynamically linked for optional dlopen() access to
# userland libiconv

View File

@ -7,7 +7,6 @@ MAN= mount_nullfs.8
MOUNT= ${.CURDIR}/../mount
CFLAGS+=-I${MOUNT}
WARNS?= 6
.PATH: ${MOUNT}

View File

@ -7,7 +7,6 @@ MAN = mount_reiserfs.8
# mount_reiserfs needs mntopts.h and getmntopts.c from src/sbin/mount/
MOUNT ?= ${.CURDIR}/../mount
CFLAGS += -I${MOUNT}
WARNS ?= 6
.PATH: ${MOUNT}

View File

@ -7,7 +7,6 @@ MAN= mount_unionfs.8
MOUNT= ${.CURDIR}/../mount
CFLAGS+=-I${MOUNT}
WARNS?= 6
.PATH: ${MOUNT}

View File

@ -5,8 +5,6 @@ MAN= newfs_msdos.8
.if ${MACHINE_ARCH} == "arm"
WARNS?= 3
.else
WARNS?= 6
.endif
.include <bsd.prog.mk>

View File

@ -2,7 +2,6 @@
# $FreeBSD$
PROG= nfsiod
WARNS?= 6
MAN= nfsiod.8
.include <bsd.prog.mk>

View File

@ -12,6 +12,7 @@ SRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c
SRCS+= pfctl_optimize.c
SRCS+= pf_ruleset.c
WARNS?= 2
CFLAGS+= -Wall -Wmissing-prototypes -Wno-uninitialized
CFLAGS+= -Wstrict-prototypes -I${.CURDIR}/../../contrib/pf/pfctl

View File

@ -8,7 +8,6 @@ MAN= rcorder.8
LDADD= -lutil
DPADD= ${LIBUTIL}
WARNS?= 6
# XXX hack for make's hash.[ch]
CFLAGS+= -DORDER -I.

View File

@ -2,7 +2,6 @@
# $FreeBSD$
PROG= reboot
WARNS?= 6
DPADD= ${LIBUTIL}
LDADD= -lutil
MAN= reboot.8 nextboot.8

View File

@ -1,7 +1,6 @@
# $FreeBSD$
PROG= recoverdisk
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -7,9 +7,7 @@ MAN= routed.8
SUBDIR= rtquery
LDADD= -lmd
DPADD= ${LIBMD}
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
WARNS?= 6
.else
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "amd64"
WARNS?= 0
.endif

View File

@ -1,7 +1,6 @@
# $FreeBSD$
PROG= savecore
WARNS?= 6
DPADD= ${LIBZ}
LDADD= -lz
MAN= savecore.8

View File

@ -4,5 +4,6 @@
PROG= sconfig
MAN= sconfig.8
MANSUBDIR= /i386
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -4,8 +4,6 @@
PROG= shutdown
MAN= shutdown.8
WARNS?= 6
BINOWN= root
BINGRP= operator
BINMODE=4550

View File

@ -2,5 +2,6 @@
PROG= spppcontrol
MAN= spppcontrol.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -8,6 +8,7 @@ LINKS+= ${BINDIR}/swapon ${BINDIR}/swapctl
MLINKS= swapon.8 swapoff.8
MLINKS+=swapon.8 swapctl.8
WARNS?= 2
DPADD= ${LIBUTIL}
LDADD= -lutil

View File

@ -5,5 +5,6 @@ PROG= tunefs
DPADD= ${LIBUFS}
LDADD= -lufs
MAN= tunefs.8
WARNS?= 2
.include <bsd.prog.mk>