Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: suppress remaining lint warnings i...
details: https://anonhg.NetBSD.org/src/rev/863ee9a251bc
branches: trunk
changeset: 985725:863ee9a251bc
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 05 16:36:56 2021 +0000
description:
lint: suppress remaining lint warnings in generated scan.c
Warning 162 about 'unsigned <= 0' feels too ambitious, it may be
restricted to the clearly wrong 'unsigned < 0' in the future.
Warnings 192 and 214 are a result of the strict bool check, but the
error messages are suppressed, which makes it hard to see why lint says
the local variable were unused and the function would not return a
value.
Warning 307 about unused static variables is OK for generated code.
diffstat:
usr.bin/xlint/lint1/Makefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 70ff8344cd28 -r 863ee9a251bc usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile Sun Sep 05 16:15:05 2021 +0000
+++ b/usr.bin/xlint/lint1/Makefile Sun Sep 05 16:36:56 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.85 2021/09/05 13:46:31 rillig Exp $
+# $NetBSD: Makefile,v 1.86 2021/09/05 16:36:56 rillig Exp $
.include <bsd.own.mk>
@@ -20,6 +20,9 @@
LOBJS.${PROG}+= ${SRCS:M*.y:.y=.ln}
LOBJS.${PROG}+= ${SRCS:M*.l:.l=.ln}
LINTFLAGS.scan.c+= -X 107,126,330,331,332,333 # strict bool mode
+LINTFLAGS.scan.c+= -X 162 # comparison of 'unsigned <= 0'
+LINTFLAGS.scan.c+= -X 192,214 # due to suppressed bool errors
+LINTFLAGS.scan.c+= -X 307 # static variable unused
CPPFLAGS+= -DIS_LINT1
CPPFLAGS+= -I${.CURDIR}
Home |
Main Index |
Thread Index |
Old Index