]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: Mark tftpd timer function as noreturn
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 6 May 2024 07:51:16 +0000 (09:51 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 6 May 2024 07:51:16 +0000 (09:51 +0200)
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>
tests/server/tftpd.c

index 0ad03c8e8102ad5d013102bc2dd779daed294c9e..9dd634eb219451568dc1f0ac2f58dc17f4de43dc 100644 (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;