Sun Jul 4 08:49:41 2021 UTC ()
lint: include scan.c in 'make lint'

This theoretically enables strict bool mode for the few remaining code
in scan.l.  Since scan.l is not yet detected as generated code, all
interesting errors have to be suppressed though.


(rillig)
diff -r1.75 -r1.76 src/usr.bin/xlint/lint1/Makefile

cvs diff -r1.75 -r1.76 src/usr.bin/xlint/lint1/Makefile (expand / switch to unified diff)

--- src/usr.bin/xlint/lint1/Makefile 2021/06/29 07:37:34 1.75
+++ src/usr.bin/xlint/lint1/Makefile 2021/07/04 08:49:41 1.76
@@ -1,35 +1,35 @@ @@ -1,35 +1,35 @@
1# $NetBSD: Makefile,v 1.75 2021/06/29 07:37:34 rillig Exp $ 1# $NetBSD: Makefile,v 1.76 2021/07/04 08:49:41 rillig Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
5PROG= lint1 5PROG= lint1
6SRCS= cgram.y \ 6SRCS= cgram.y \
7 ckbool.c ckctype.c ckgetopt.c \ 7 ckbool.c ckctype.c ckgetopt.c \
8 decl.c emit.c emit1.c err.c func.c init.c inittyp.c lex.c \ 8 decl.c emit.c emit1.c err.c func.c init.c inittyp.c lex.c \
9 main1.c mem.c mem1.c oper.c print.c scan.l tree.c tyname.c 9 main1.c mem.c mem1.c oper.c print.c scan.l tree.c tyname.c
10 10
11MAN= lint.7 11MAN= lint.7
12YHEADER= 12YHEADER=
13#DBG= -g 13#DBG= -g
14#CPPFLAGS+= -DYYDEBUG=1 14#CPPFLAGS+= -DYYDEBUG=1
15#YFLAGS+= -v 15#YFLAGS+= -v
16#LFLAGS+= -d 16#LFLAGS+= -d
17 17
18CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion 18CWARNFLAGS.clang+= -Wno-error=implicit-int-float-conversion
19LINTFLAGS+= -T 19LINTFLAGS+= -T
20LOBJS.${PROG}+= ${SRCS:M*.y:.y=.ln} 20LOBJS.${PROG}+= ${SRCS:M*.y:.y=.ln}
21#LOBJS.${PROG}+= ${SRCS:M*.l:.l=.ln} 21LOBJS.${PROG}+= ${SRCS:M*.l:.l=.ln}
22LINTFLAGS.scan.c= -X 107,330,331,333 22LINTFLAGS.scan.c= -X 107,126,330,331,332,333
23 23
24CPPFLAGS+= -DIS_LINT1 24CPPFLAGS+= -DIS_LINT1
25CPPFLAGS+= -I${.CURDIR} 25CPPFLAGS+= -I${.CURDIR}
26CPPFLAGS+= ${DEBUG:D-DDEBUG} 26CPPFLAGS+= ${DEBUG:D-DDEBUG}
27 27
28COPTS.err.c+= ${${ACTIVE_CC} == "clang":? -Wno-format-nonliteral :} 28COPTS.err.c+= ${${ACTIVE_CC} == "clang":? -Wno-format-nonliteral :}
29 29
30# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177 30# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177
31.if ${HAVE_GCC:U0} >= 9 && \ 31.if ${HAVE_GCC:U0} >= 9 && \
32 (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") 32 (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb")
33COPTS.lex.c+= -O0 33COPTS.lex.c+= -O0
34.endif 34.endif
35 35