Module Name: src Committed By: rillig Date: Sun May 12 17:55:37 UTC 2024
Modified Files: src/bin: Makefile.inc src/sbin: Makefile.inc src/usr.bin: Makefile.inc src/usr.sbin: Makefile.inc Log Message: lint: suppress "used but not defined" for bin, sbin, usr.bin, usr.sbin These diagnostics are emitted by lint2, and like all diagnostics from lint2, they don't affect the exit status. In libc, lint cannot handle the renamings from namespace.h, generating many false positive diagnostics since 'libc_function' is used but '_libc_function' is defined. Until this situation is handled properly, suppress this diagnostic. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/bin/Makefile.inc cvs rdiff -u -r1.24 -r1.25 src/sbin/Makefile.inc cvs rdiff -u -r1.12 -r1.13 src/usr.bin/Makefile.inc cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/Makefile.inc diff -u src/bin/Makefile.inc:1.19 src/bin/Makefile.inc:1.20 --- src/bin/Makefile.inc:1.19 Sat Apr 20 13:24:48 2024 +++ src/bin/Makefile.inc Sun May 12 17:55:36 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.19 2024/04/20 13:24:48 rillig Exp $ +# $NetBSD: Makefile.inc,v 1.20 2024/05/12 17:55:36 rillig Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 5/31/93 .include <bsd.own.mk> # for MKDYNAMICROOT definition @@ -6,6 +6,8 @@ WARNS?= 5 BINDIR?= /bin +LINTFLAGS+= -u # don't warn about "used but not defined" + .if (${MKDYNAMICROOT} == "no") LDSTATIC?= -static .endif Index: src/sbin/Makefile.inc diff -u src/sbin/Makefile.inc:1.24 src/sbin/Makefile.inc:1.25 --- src/sbin/Makefile.inc:1.24 Sat Apr 20 13:24:48 2024 +++ src/sbin/Makefile.inc Sun May 12 17:55:36 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.24 2024/04/20 13:24:48 rillig Exp $ +# $NetBSD: Makefile.inc,v 1.25 2024/05/12 17:55:36 rillig Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/8/93 .include <bsd.own.mk> # for MKDYNAMICROOT definition @@ -6,6 +6,8 @@ WARNS?= 5 BINDIR?= /sbin +LINTFLAGS+= -u # don't warn about "used but not defined" + .if (${MKDYNAMICROOT} == "no") LDSTATIC?= -static .endif Index: src/usr.bin/Makefile.inc diff -u src/usr.bin/Makefile.inc:1.12 src/usr.bin/Makefile.inc:1.13 --- src/usr.bin/Makefile.inc:1.12 Sat Apr 20 13:24:49 2024 +++ src/usr.bin/Makefile.inc Sun May 12 17:55:37 2024 @@ -1,9 +1,11 @@ -# $NetBSD: Makefile.inc,v 1.12 2024/04/20 13:24:49 rillig Exp $ +# $NetBSD: Makefile.inc,v 1.13 2024/05/12 17:55:37 rillig Exp $ # from: @(#)Makefile.inc 8.1 (Berkeley) 6/6/93 WARNS?= 5 BINDIR?=/usr/bin +LINTFLAGS+= -u # don't warn about "used but not defined" + .include <bsd.own.mk> .if ${MKLINT} != "no" && !defined(NOLINT) realall: lint Index: src/usr.sbin/Makefile.inc diff -u src/usr.sbin/Makefile.inc:1.9 src/usr.sbin/Makefile.inc:1.10 --- src/usr.sbin/Makefile.inc:1.9 Sat Apr 20 13:24:49 2024 +++ src/usr.sbin/Makefile.inc Sun May 12 17:55:37 2024 @@ -1,10 +1,12 @@ -# $NetBSD: Makefile.inc,v 1.9 2024/04/20 13:24:49 rillig Exp $ +# $NetBSD: Makefile.inc,v 1.10 2024/05/12 17:55:37 rillig Exp $ # from: @(#)Makefile.inc 8.1 (Berkeley) 6/6/93 BINDIR?= /usr/sbin WARNS?= 4 CPPFLAGS+= -D_KERNTYPES +LINTFLAGS+= -u # don't warn about "used but not defined" + .include <bsd.own.mk> .if ${MKLINT} != "no" && !defined(NOLINT) realall: lint