Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/lgpl3/mpc/lib/libmpc libmpc: suppress wrong lint wa...



details:   https://anonhg.NetBSD.org/src/rev/1ac4ecb36f62
branches:  trunk
changeset: 366087:1ac4ecb36f62
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat May 14 11:12:31 2022 +0000

description:
libmpc: suppress wrong lint warnings

diffstat:

 external/lgpl3/mpc/lib/libmpc/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 852fd4c801bc -r 1ac4ecb36f62 external/lgpl3/mpc/lib/libmpc/Makefile
--- a/external/lgpl3/mpc/lib/libmpc/Makefile    Sat May 14 07:11:23 2022 +0000
+++ b/external/lgpl3/mpc/lib/libmpc/Makefile    Sat May 14 11:12:31 2022 +0000
@@ -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${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



Home | Main Index | Thread Index | Old Index