5f7167e287
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
41 lines
916 B
Diff
41 lines
916 B
Diff
From f7b501c2dd7170d45f92a8678a84d2228cd9e6a4 Mon Sep 17 00:00:00 2001
|
|
From: rpm-build <rpm-build>
|
|
Date: Sun, 21 Jan 2024 19:29:25 +0100
|
|
Subject: [PATCH] Correct function prototype for signal handers in sgmls
|
|
configure
|
|
Content-type: text/plain
|
|
|
|
This avoids altering the outcome of the checks with GCC 14 and Clang 16.
|
|
|
|
Submitted upstream: <https://bugs.debian.org/1061266>
|
|
|
|
---
|
|
sgmls-1.1/configure | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/sgmls-1.1/configure b/sgmls-1.1/configure
|
|
index e674d24..898b522 100755
|
|
--- a/sgmls-1.1/configure
|
|
+++ b/sgmls-1.1/configure
|
|
@@ -113,7 +113,7 @@ cat >doit.c <<\EOF
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
-static int whoops()
|
|
+static void whoops(int signo)
|
|
{
|
|
_exit(1);
|
|
}
|
|
@@ -459,7 +459,7 @@ cat >doit.c <<\EOF
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
|
|
-static int whoops()
|
|
+static void whoops(int signo)
|
|
{
|
|
_exit(1);
|
|
}
|
|
--
|
|
2.43.0
|
|
|