mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 04:52:47 -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:
7
putty.h
7
putty.h
@ -1141,11 +1141,8 @@ struct TermWinVtable {
|
||||
* Global functions not specific to a connection instance.
|
||||
*/
|
||||
void nonfatal(const char *, ...);
|
||||
void modalfatalbox(const char *, ...);
|
||||
#ifdef macintosh
|
||||
#pragma noreturn(modalfatalbox)
|
||||
#endif
|
||||
void cleanup_exit(int);
|
||||
NORETURN void modalfatalbox(const char *, ...);
|
||||
NORETURN void cleanup_exit(int);
|
||||
|
||||
/*
|
||||
* Exports from conf.c, and a big enum (via parametric macro) of
|
||||
|
Reference in New Issue
Block a user