From: Daniel Gustafsson Date: Mon, 6 May 2024 07:51:16 +0000 (+0200) Subject: tests: Mark tftpd timer function as noreturn X-Git-Tag: curl-8_8_0~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96852a130a7e9b341f62a310356ce8d8315a7445;p=thirdparty%2Fcurl.git tests: Mark tftpd timer function as noreturn This avoids the below compiler warning: tftpd.c:280:1: warning: function 'timer' could be declared with attribute 'noreturn' [-Wmissing-noreturn] Closes: #13534 Reviewed-by: Daniel Stenberg --- diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 0ad03c8e81..9dd634eb21 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -276,6 +276,9 @@ static void mysignal(int sig, void (*handler)(int)) sigaction(sig, &sa, NULL); } +#ifdef HAVE_SIGSETJMP +CURL_NORETURN +#endif static void timer(int signum) { (void)signum;