summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol/Makefile
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2003-08-05 09:19:07 +0000
committerjohan <johan@FreeBSD.org>2003-08-05 09:19:07 +0000
commit058c938f4b892b98c001722198b1e819e18af1d4 (patch)
tree5f009a8be2fda0bf2a6970701dc01c1ff9ee4acb /sbin/camcontrol/Makefile
parent2722e0638f8c072f57ae45c6be7bf0d9e6e57b2b (diff)
downloadFreeBSD-src-058c938f4b892b98c001722198b1e819e18af1d4.zip
FreeBSD-src-058c938f4b892b98c001722198b1e819e18af1d4.tar.gz
Make this WARNS=6 clean by:
1: add 'const' to char * where needed; 2: mark unused variables with __unused; 3: remove double prototypes for mode_edit and mode_list. 4: moves the global variables 'bus', 'target', and 'lun' into the main function and protect them with #ifndef MINIMALISTIC, 5: renames 3 variable in order not to shadow other things index -> indx -- in modepage_dump since index is a function from <strings.h.> arglist -> arglst -- in the function parse_btl since arglist is also a global variable convertend -> convertend2 -- in the function editentry_set since that name is used two times within the function. 6: cast 0xffffffff in the macro RESOLUTION_MAX(size) to (int) since it is unsigned otherwise. Tested by: make universe Approved by: ken
Diffstat (limited to 'sbin/camcontrol/Makefile')
-rw-r--r--sbin/camcontrol/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/camcontrol/Makefile b/sbin/camcontrol/Makefile
index 54b8680..ebc56dd 100644
--- a/sbin/camcontrol/Makefile
+++ b/sbin/camcontrol/Makefile
@@ -7,7 +7,7 @@ SRCS+= modeedit.c
.else
CFLAGS+= -DMINIMALISTIC
.endif
-WARNS= 1
+WARNS?= 6
DPADD= ${LIBCAM} ${LIBSBUF}
LDADD= -lcam -lsbuf
MAN= camcontrol.8
OpenPOWER on IntegriCloud