diff options
| author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2020-03-12 10:57:04 +0100 |
|---|---|---|
| committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2020-03-19 18:33:48 +0100 |
| commit | b25b292538d4eb92bbc2d4b73863a9c745db2f8c (patch) | |
| tree | 13194a8fe3ccb370cbc2e144be029b0fb83c2588 /lib/libfrr.h | |
| parent | 795fbef4dfe44e592281aa7217dc9c89e0bb143f (diff) | |
treewide: add attribute to functions that do not return
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'lib/libfrr.h')
| -rw-r--r-- | lib/libfrr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libfrr.h b/lib/libfrr.h index f964c9e2a1..9d91ea9154 100644 --- a/lib/libfrr.h +++ b/lib/libfrr.h @@ -128,7 +128,8 @@ extern void frr_preinit(struct frr_daemon_info *daemon, int argc, char **argv); extern void frr_opt_add(const char *optstr, const struct option *longopts, const char *helpstr); extern int frr_getopt(int argc, char *const argv[], int *longindex); -extern void frr_help_exit(int status); + +extern __attribute__((__noreturn__)) void frr_help_exit(int status); extern struct thread_master *frr_init(void); extern const char *frr_get_progname(void); |
