diff options
| author | lukem <lukem@NetBSD.org> | 2023-06-03 21:30:20 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2023-06-03 21:30:20 +0000 |
| commit | bf78d24f392cabe409a8996d69a3aa31cfa05bf5 (patch) | |
| tree | 2918bee2f5c43e69cf1466373a63dce5c843ba82 /lib | |
| parent | e0afa30fb1d93c0343ecc354a6d6f67358e262cd (diff) | |
adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}
Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of
the older style more complex expressions.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libbz2/Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libbz2/Makefile b/lib/libbz2/Makefile index a7cb39664bc..b2aea1e04b0 100644 --- a/lib/libbz2/Makefile +++ b/lib/libbz2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2019/09/29 23:44:59 mrg Exp $ +# $NetBSD: Makefile,v 1.21 2023/06/03 21:30:21 lukem Exp $ USE_FORT?= yes # data driven bugs? @@ -20,9 +20,7 @@ INCSDIR= /usr/include COPTS+= -O0 .endif -.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" -COPTS+= -Wno-error=implicit-fallthrough -.endif +COPTS+= ${CC_WNO_IMPLICIT_FALLTHROUGH} # XXX blocksort.c gets mis-compiled with 4.1 .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \ |
