error: disable lint's strict bool mode when building with Clang

The Clang preprocessor does not mark sections from system headers.
Lint's strict bool mode relies on these markers to allow the functions
from <ctype.h> to be used as 'bool', even though their declared return
type is 'int'. Without these markers, lint complains that the "right
operand of '&&' must be bool, not 'int'". Until this is fixed in lint,
disable strict bool mode.
This commit is contained in:
rillig 2024-05-10 09:27:27 +00:00
parent 0168e31e24
commit d5c41e0169
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $NetBSD: Makefile,v 1.11 2023/08/26 14:50:53 rillig Exp $
# $NetBSD: Makefile,v 1.12 2024/05/10 09:27:27 rillig Exp $
PROG= error
SRCS= main.c input.c pi.c subr.c filter.c touch.c
@ -8,6 +8,6 @@ DPADD+= ${LIBUTIL}
LDADD+= -lutil
LINTFLAGS+= -w # treat warnings as errors
LINTFLAGS+= -T # strict bool mode
LINTFLAGS+= ${HAVE_LLVM:U-T:D} # strict bool mode
.include <bsd.prog.mk>