Skip to content

Commit

Permalink
tests: Mark tftpd timer function as noreturn
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
danielgustafsson committed May 6, 2024
1 parent d19fc8e commit 96852a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/server/tftpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 96852a1

Please sign in to comment.