diff options
| author | rillig <rillig@NetBSD.org> | 2021-07-31 09:30:17 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2021-07-31 09:30:17 +0000 |
| commit | f0384cf51a0a7decc5c73f3801ac2730b3aee5a8 (patch) | |
| tree | 0a7ffeab732f2d73f30ce1c5d37d471b93c57fe2 /usr.bin/make/Makefile | |
| parent | 675b921214b7463e3a1020e0b9eec13351a5d630 (diff) | |
make: fix lint warnings
The string functions from str.h are declared as 'static __unused' when
compiled with GCC, but lint explicitly undefines __GCC__ during
preprocessing. Therefore, make those functions inline, to prevent
warnings that they are unused.
The macro UNCONST is used in a few places, and (again) since lint
undefines __GCC__, that macro expanded to a simple type cast, which lint
warned about. To prevent this warning, implement UNCONST as a function
that works everywhere and hides the type cast.
In filemon_open, the code for closing F->in was obviously unreachable.
No functional change.
Diffstat (limited to 'usr.bin/make/Makefile')
| -rw-r--r-- | usr.bin/make/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index 3bbefb2285f..5ec88f3e801 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.115 2021/05/30 21:03:08 rillig Exp $ +# $NetBSD: Makefile,v 1.116 2021/07/31 09:30:17 rillig Exp $ # @(#)Makefile 5.2 (Berkeley) 12/28/90 PROG= make @@ -117,6 +117,7 @@ SUBDIR+= unit-tests .endif LINTFLAGS+= -T # strict bool mode, available since 2021-01-11 +LINTFLAGS+= -w # treat warnings as errors CLEANFILES+= *.o # for filemon objects COPTS.arch.c+= ${GCC_NO_FORMAT_TRUNCATION} |
