libmpc: suppress wrong lint warnings

This commit is contained in:
rillig 2022-05-14 11:12:31 +00:00
parent 25ac767b16
commit b6f12bc4a7
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2020/09/26 07:57:56 mrg Exp $
# $NetBSD: Makefile,v 1.6 2022/05/14 11:12:31 rillig Exp $
.include <bsd.init.mk>
@ -106,6 +106,12 @@ CPPFLAGS+= -I${.CURDIR}
CPPFLAGS+= -I${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp/arch/${GMP_MACHINE_ARCH}
CPPFLAGS+= -I${NETBSDSRCDIR}/external/lgpl3/mpfr/dist/src
# mostly mpfr.h, MPFR_VALUE_OF
LINTFLAGS+= -X 161 # constant in conditional context
# mostly mpc.h, MPC_RND_IM;
# mpc_rnd_t is declared as int even though only 8 bits are actually used
LINTFLAGS+= -X 117 # bitwise '>>' on signed value possibly nonportable
.include <bsd.lib.mk>
.PATH: ${.CURDIR}/../../dist/src