Mark noreturn functions

This commit is contained in:
Christian Göttsche
2020-09-08 14:28:15 +02:00
committed by cgzones
parent b85a31415e
commit e719a85994
17 changed files with 37 additions and 11 deletions

2
htop.c
View File

@ -29,11 +29,13 @@ in the source distribution for its full text.
//#link m
ATTR_NORETURN
static void printVersionFlag(void) {
fputs("htop " VERSION "\n", stdout);
exit(0);
}
ATTR_NORETURN
static void printHelpFlag(void) {
fputs("htop " VERSION "\n"
"Released under the GNU GPL.\n\n"