aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-11 16:38:26 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-12 12:02:37 +0200
commitb4a2fa44359c0625aa6c5af6f2bcbed51b4df713 (patch)
tree0ec62307cae3818a2fc4ac4c96be263c6dbaf1fb
parentb9c1969126bc772a4ec34b56cd0de9b6fc4e44f5 (diff)
downloadcalcurse-b4a2fa44359c0625aa6c5af6f2bcbed51b4df713.tar.gz
calcurse-b4a2fa44359c0625aa6c5af6f2bcbed51b4df713.zip
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>
-rw-r--r--src/calcurse.h2
1 files changed, 1 insertions, 1 deletions
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 *);