Declare exit_calcurse() "noreturn".
Functions that never return should be declared "noreturn" to tell the compiler this fact. Also, clang-analyzer will detect this attribute and take it into account when running scan-build. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
b9c1969126
commit
b4a2fa4435
@ -840,7 +840,7 @@ void todo_view_note (char *);
|
|||||||
void todo_free_list (void);
|
void todo_free_list (void);
|
||||||
|
|
||||||
/* utils.c */
|
/* utils.c */
|
||||||
void exit_calcurse (int);
|
void exit_calcurse (int) __attribute__((__noreturn__));
|
||||||
void free_user_data (void);
|
void free_user_data (void);
|
||||||
void fatalbox (const char *);
|
void fatalbox (const char *);
|
||||||
void warnbox (const char *);
|
void warnbox (const char *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user