mirror of
https://github.com/curl/curl.git
synced 2026-04-22 18:32:28 +03:00
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:
parent
d19fc8ea33
commit
96852a130a
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue