Control: tags -1 + patch

I believe the following patch will solve the issue.  It is already commited to
the salsa git repository.

diff --git a/debian/patches/gcc-14.patch b/debian/patches/gcc-14.patch
new file mode 100644
index 0000000..f36616c
--- /dev/null
+++ b/debian/patches/gcc-14.patch
@@ -0,0 +1,28 @@
+Description: Fixed sighandler signature to work with GCC 14.
+ Use correct function signature for signal handler, to match the
+ signature expected by signal().
+Author: Petter Reinholdtsen <p...@debian.org>
+Bug-Debian: https://bugs.debian.org/1075032
+Forwarded: no
+Last-Update: 2024-09-09
+---
+--- goban-1.1.orig/src/main.c
++++ goban-1.1/src/main.c
+@@ -26,7 +26,7 @@
+  **********************************************************************/
+ static void  stealth(int exitVal);
+ #if  !DEBUG
+-static void *sigHandler();
++static void sigHandler(int);
+ #endif  /* !DEBUG */
+ 
+ 
+@@ -134,7 +134,7 @@ static void  stealth(int exitVal)  {
+ 
+ 
+ #if  !DEBUG
+-static void *  sigHandler()  {
++static void sigHandler(int)  {
+   fprintf(stderr, "Signal caught.\n");
+   assert(FALSE);
+ }
diff --git a/debian/patches/series b/debian/patches/series
index a83bcfe..c50096b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ nonexecutable.patch
 noabout.patch
 integer-wid
 libexec-install.patch
+gcc-14.patch

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to