File: fix-acinclude-m4-for-gcc-15.patch

package info (click to toggle)
gmp 2%3A6.3.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,288 kB
  • sloc: ansic: 135,128; asm: 133,235; cpp: 5,534; sh: 5,303; perl: 2,930; makefile: 809; yacc: 226; lisp: 203; lex: 95; fortran: 24
file content (20 lines) | stat: -rw-r--r-- 687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Marc Glisse <marc.glisse@inria.fr>
Subject: Complete function prototype in acinclude.m4 for C23 compatibility
Bug-Debian: https://bugs.debian.org/1096730

This patch is the sum of the following two upstream commits:

https://gmplib.org/repo/gmp/raw-rev/8e7bb4ae7a18
https://gmplib.org/repo/gmp/raw-rev/d66d66d82dbb

--- a/acinclude.m4
+++ b/acinclude.m4
@@ -609,7 +609,7 @@
 
 #if defined (__GNUC__) && ! defined (__cplusplus)
 typedef unsigned long long t1;typedef t1*t2;
-void g(){}
+void g(int a,t1 const*b,t1 c,t2 d,t1 const*e,int f){}
 void h(){}
 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}