From 96852a130a7e9b341f62a310356ce8d8315a7445 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Mon, 6 May 2024 09:51:16 +0200 Subject: [PATCH] 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 --- tests/server/tftpd.c | 3 +++ 1 file changed, 3 insertions(+) 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;