{usr.,}{s,}bin: replace LINT_SUPPORTED with the standard NOLINT

While here, re-enable lint in those cases where lint was skipped due to
a bug in interpreting abstract types, which was fixed in cgram.y 1.469
from 2023-08-02.
pull/35/head
rillig 2024-04-20 13:24:48 +00:00
parent 39cc76d687
commit f56f0d26c4
10 changed files with 17 additions and 30 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.18 2021/10/09 21:06:31 rillig Exp $
# $NetBSD: Makefile.inc,v 1.19 2024/04/20 13:24:48 rillig Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 5/31/93
.include <bsd.own.mk> # for MKDYNAMICROOT definition
@ -10,6 +10,6 @@ BINDIR?= /bin
LDSTATIC?= -static
.endif
.if ${MKLINT} != "no" && ${LINT_SUPPORTED:Uyes} == "yes"
.if ${MKLINT} != "no" && !defined(NOLINT)
realall: lint
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.23 2021/09/14 20:13:03 rillig Exp $
# $NetBSD: Makefile.inc,v 1.24 2024/04/20 13:24:48 rillig Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/8/93
.include <bsd.own.mk> # for MKDYNAMICROOT definition
@ -10,6 +10,6 @@ BINDIR?= /sbin
LDSTATIC?= -static
.endif
.if ${MKLINT} != "no" && ${LINT_SUPPORTED:Uyes} == "yes"
.if ${MKLINT} != "no" && !defined(NOLINT)
realall: lint
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2021/09/14 20:13:03 rillig Exp $
# $NetBSD: Makefile,v 1.24 2024/04/20 13:24:48 rillig Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
WARNS?= 3 # XXX: sign-compare issues
@ -19,9 +19,4 @@ CPPFLAGS+=-I${.CURDIR} -I${FSCK} -DIN_FSCK_LFS
LDADD+=-lutil
DPADD+=${LIBUTIL}
# As of 2021-09-14, lint does not recognize the types as equal, but it should.
# vnode.c(104): error: redeclaration of register_vget [27]
# vnode.h(75): previous declaration of register_vget [260]
LINT_SUPPORTED= no
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2021/09/14 20:13:03 rillig Exp $
# $NetBSD: Makefile,v 1.16 2024/04/20 13:24:49 rillig Exp $
# @(#)Makefile 8.1 (Berkeley) 6/18/93
WARNS?= 3 # XXX: sign-compare issues
@ -25,9 +25,4 @@ DPADD+=${LIBPROP}
CPPFLAGS+=-I${FSCK_LFS} -I${FSCK} # -DNDEBUG # -DVERBOSE_BLOCKMAP
# As of 2021-09-14, lint does not recognize the types as equal, but it should.
# vnode.c(104): error: redeclaration of register_vget [27]
# vnode.h(75): previous declaration of register_vget [260]
LINT_SUPPORTED= no
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2021/09/14 20:13:03 rillig Exp $
# $NetBSD: Makefile,v 1.8 2024/04/20 13:24:49 rillig Exp $
.include <bsd.own.mk>
@ -14,7 +14,4 @@ LDADD+= -lutil
.PATH: ${NETBSDSRCDIR}/sys/ufs/ffs
.PATH: ${NETBSDSRCDIR}/sbin/fsck
# resize_ffs.c(90): error: cannot take size/alignment of incomplete type [143]
LINT_SUPPORTED= no
.include <bsd.prog.mk>

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile.inc,v 1.11 2021/08/22 22:24:11 rillig Exp $
# $NetBSD: Makefile.inc,v 1.12 2024/04/20 13:24:49 rillig Exp $
# from: @(#)Makefile.inc 8.1 (Berkeley) 6/6/93
WARNS?= 5
BINDIR?=/usr/bin
.include <bsd.own.mk>
.if ${MKLINT} != "no" && ${LINT_SUPPORTED:Uyes} == "yes"
.if ${MKLINT} != "no" && !defined(NOLINT)
realall: lint
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.36 2023/06/03 08:52:59 lukem Exp $
# $NetBSD: Makefile,v 1.37 2024/04/20 13:24:49 rillig Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk> # for MKDYNAMICROOT & NETBSDSRCDIR
@ -11,7 +11,7 @@ MAN= kdump.1 ioctlprint.1
SRCS= kdump.c subr.c setemul.c siginfo.c
.PATH: ${NETBSDSRCDIR}/usr.bin/ktrace
CLEANFILES+=siginfo.c
LINT_SUPPORTED= no # kdump-ioctl.c defines uio_t twice.
NOLINT= # kdump-ioctl.c defines uio_t twice.
.if (${MKDYNAMICROOT} == "no")
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.33 2023/06/03 08:53:00 lukem Exp $
# $NetBSD: Makefile,v 1.34 2024/04/20 13:24:49 rillig Exp $
NOMAN= # defined
@ -7,7 +7,7 @@ NOMAN= # defined
PROG= ktruss
SRCS= ktrace.c dump.c subr.c misc.c setemul.c
CLEANFILES+= misc.c misc.h
LINT_SUPPORTED= no # ktruss-ioctl.c defines uio_t twice.
NOLINT= # ktruss-ioctl.c defines uio_t twice.
.if (${MKDYNAMICROOT} == "no")
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2021/11/01 21:37:33 nia Exp $
# $NetBSD: Makefile,v 1.18 2024/04/20 13:24:49 rillig Exp $
#
NOFULLRELRO= yes
@ -8,7 +8,7 @@ NOFULLRELRO= yes
PROG= rump_server
SRCS= rump_allserver.c
NOMAN= installed by ../rump_allserver
LINT_SUPPORTED= no # LDADD contains -Wl,...
NOLINT= # LDADD contains -Wl,...
LDADD+= \
-Wl,--whole-archive \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.8 2021/09/14 20:36:02 rillig Exp $
# $NetBSD: Makefile.inc,v 1.9 2024/04/20 13:24:49 rillig Exp $
# from: @(#)Makefile.inc 8.1 (Berkeley) 6/6/93
BINDIR?= /usr/sbin
@ -6,6 +6,6 @@ WARNS?= 4
CPPFLAGS+= -D_KERNTYPES
.include <bsd.own.mk>
.if ${MKLINT} != "no" && ${LINT_SUPPORTED:Uyes} == "yes"
.if ${MKLINT} != "no" && !defined(NOLINT)
realall: lint
.endif