Module Name:    src
Committed By:   rillig
Date:           Mon Dec  6 23:05:36 UTC 2021

Modified Files:
        src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/external/lgpl3/gmp/lib/libgmp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.29 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.30
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.29	Sat Sep 18 01:47:10 2021
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Mon Dec  6 23:05:36 2021
@@ -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 @@ CWARNFLAGS.clang+=	-Wno-unused-value -Wn
 .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

Reply via email to