From b4a2fa44359c0625aa6c5af6f2bcbed51b4df713 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 11 Apr 2011 16:38:26 +0200 Subject: 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 --- src/calcurse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calcurse.h b/src/calcurse.h index 0a306f0..916fc92 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -840,7 +840,7 @@ void todo_view_note (char *); void todo_free_list (void); /* utils.c */ -void exit_calcurse (int); +void exit_calcurse (int) __attribute__((__noreturn__)); void free_user_data (void); void fatalbox (const char *); void warnbox (const char *); -- cgit v1.2.3-70-g09d2