diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-04-18 14:27:53 -0700 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-05-16 06:31:54 -0700 |
commit | d59fec29b131f30b27343d54bdf1071ee98eda8e (patch) | |
tree | 3952e1fda593f4e9eb269ab9a65e4009d11eabd7 /tools/lib/subcmd/parse-options.h | |
parent | 34245659debd194cbd4148d2ee5176306bdf8899 (diff) | |
download | linux-d59fec29b131f30b27343d54bdf1071ee98eda8e.tar.gz linux-d59fec29b131f30b27343d54bdf1071ee98eda8e.tar.bz2 linux-d59fec29b131f30b27343d54bdf1071ee98eda8e.zip |
tools/lib/subcmd: Replace NORETURN usage with __noreturn
NORETURN is redundant with __noreturn, just use the latter.
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lore.kernel.org/r/c7c83d1e6b3d2b0c3e65dd3790c22c772d3b2527.1681853186.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/lib/subcmd/parse-options.h')
-rw-r--r-- | tools/lib/subcmd/parse-options.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/lib/subcmd/parse-options.h b/tools/lib/subcmd/parse-options.h index 41b9b942504d..8e9147358a28 100644 --- a/tools/lib/subcmd/parse-options.h +++ b/tools/lib/subcmd/parse-options.h @@ -6,10 +6,6 @@ #include <stdbool.h> #include <stdint.h> -#ifndef NORETURN -#define NORETURN __attribute__((__noreturn__)) -#endif - enum parse_opt_type { /* special types */ OPTION_END, @@ -183,9 +179,9 @@ extern int parse_options_subcommand(int argc, const char **argv, const char *const subcommands[], const char *usagestr[], int flags); -extern NORETURN void usage_with_options(const char * const *usagestr, +extern __noreturn void usage_with_options(const char * const *usagestr, const struct option *options); -extern NORETURN __attribute__((format(printf,3,4))) +extern __noreturn __attribute__((format(printf,3,4))) void usage_with_options_msg(const char * const *usagestr, const struct option *options, const char *fmt, ...); |