Source-Changes-HG archive

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

[src/trunk]: src/external/lgpl3/gmp/lib/libgmp libgmp: suppress a few lint wa...



details:   https://anonhg.NetBSD.org/src/rev/4b67dd473e01
branches:  trunk
changeset: 1026778:4b67dd473e01
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Dec 06 23:05:36 2021 +0000

description:
libgmp: suppress a few lint warnings

Instead of erroring out due to the unknown function alloca, lint now
warns about a pointer/integer mismatch since it wrongly assumes that all
__builtin functions return int. The warning is still better than a
failing build though.

diffstat:

 external/lgpl3/gmp/lib/libgmp/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 5a15e47a5ecf -r 4b67dd473e01 external/lgpl3/gmp/lib/libgmp/Makefile
--- a/external/lgpl3/gmp/lib/libgmp/Makefile    Mon Dec 06 22:45:42 2021 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/Makefile    Mon Dec 06 23:05:36 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.29 2021/09/18 01:47:10 christos Exp $
+#      $NetBSD: Makefile,v 1.30 2021/12/06 23:05:36 rillig Exp $
 
 .include <bsd.init.mk>
 
@@ -265,3 +265,10 @@
 .if !empty(CFLAGS:M-fPIE)
 M4FLAGS+=-DPIC
 .endif
+
+# redc_n.c(62): error: function 'alloca' implicitly declared to return int [215]
+LINTFLAGS+=    -Dalloca=__builtin_alloca
+# gmp-impl.h(5172): warning: constant in conditional context [161]
+LINTFLAGS+=    -X 161
+# gmp-impl.h(5187): warning: bitwise '>>' on signed value possibly nonportable [117]
+LINTFLAGS+=    -X 117



Home | Main Index | Thread Index | Old Index