From 85e31de32ca8c7e742a45bd85ce06f6044e31fc9 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 1 Jun 2016 20:34:51 +0000 Subject: [PATCH] bandb/bantool: a function that calls exit(3) should be marked noreturn --- bandb/bantool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bandb/bantool.c b/bandb/bantool.c index e89fa5b9..f4547eb9 100644 --- a/bandb/bantool.c +++ b/bandb/bantool.c @@ -43,7 +43,6 @@ #include "rsdb.h" #define EmptyString(x) ((x == NULL) || (*(x) == '\0')) -#define CheckEmpty(x) EmptyString(x) ? "" : x #define BT_VERSION "0.4.1" @@ -119,7 +118,7 @@ static void db_reclaim_slack(void); static void export_config(const char *conf, int id); static void import_config(const char *conf, int id); static void check_schema(void); -static void print_help(int i_exit); +static void print_help(int i_exit) __attribute__((noreturn)); static void wipe_schema(void); static void drop_dupes(const char *user, const char *host, const char *t);