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 <daniel@haxx.se>
This commit is contained in:
Daniel Gustafsson 2024-05-06 09:51:16 +02:00
parent d19fc8ea33
commit 96852a130a

View File

@ -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;