From cf0449174f858f97e13655a7a5f1ef82d2242d08 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 3 May 2025 21:44:19 +0100 Subject: [PATCH] Fix build with GCC 15 --- resize.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resize.c b/resize.c index 21942d8..8618ed8 100644 --- a/resize.c +++ b/resize.c @@ -36,7 +36,7 @@ #include "compat.h" #ifdef SIGWINCH -static RETSIGTYPE sigwinch(); +static RETSIGTYPE sigwinch(int sig); #endif static volatile int sigwinch_seen; @@ -44,8 +44,7 @@ static volatile int sigwinch_seen; #ifdef SIGWINCH /* Set the flag when the window size changes */ static RETSIGTYPE -sigwinch(sig) - int sig; +sigwinch(int sig) { sigwinch_seen = 1; }