From 99c48fe9974b8d70ca33674658a3da722b0d6466 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 5 Jun 2022 22:05:19 +0100 Subject: patch 8.2.5061: C89 requires signal handlers to return void Problem: C89 requires signal handlers to return void. Solution: Drop RETSIGTYPE and hard-code a void return value. --- src/configure.ac | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/configure.ac') diff --git a/src/configure.ac b/src/configure.ac index 37a7c6882c..778d11a45e 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -3644,17 +3644,6 @@ fi dnl Checks for library functions. =================================== -dnl TODO: this generates an obsolete warning, would need to remove and replace -dnl all RETSIGTYPE with "void" and SIGRETURN with "return". -AC_TYPE_SIGNAL - -dnl find out what to use at the end of a signal function -if test $ac_cv_type_signal = void; then - AC_DEFINE(SIGRETURN, [return]) -else - AC_DEFINE(SIGRETURN, [return 0]) -fi - dnl check if struct sigcontext is defined (used for SGI only) AC_MSG_CHECKING(for struct sigcontext) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ -- cgit v1.2.3