1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Mark a few functions as __attribute__((noreturn)).

This is mostly to make static analysers and compiler warnings a bit
happier - now they know that a call to, say, modalfatalbox() means
they don't have to worry about what the rest of the function will do.
This commit is contained in:
Simon Tatham
2018-12-01 10:33:08 +00:00
parent 144b738f31
commit d2ff948207
3 changed files with 9 additions and 6 deletions

2
pscp.c
View File

@ -226,7 +226,7 @@ static void ssh_scp_init(void)
/*
* Print an error message and exit after closing the SSH link.
*/
static void bump(const char *fmt, ...)
static NORETURN void bump(const char *fmt, ...)
{
char *str, *str2;
va_list ap;