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.
This commit is contained in:
parent
87f98fe280
commit
0866d10930
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue