summaryrefslogtreecommitdiff
path: root/help.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-09-23 21:08:43 +0200
committerDavid Sterba <dsterba@suse.com>2017-09-25 15:18:32 +0200
commit628307f5c4de32b282bef30eda7fc034d198c6d4 (patch)
tree14ece3dfd4d4ad11840922b281bb4e6ca6bdfe92 /help.h
parentb4b069dcb22bd707775c3c649d77124ed006e39f (diff)
btrfs-progs: updated and add missing function attributes to the definition
Reported by sparse. Make the prototype match the definition and put the attributes before the function. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'help.h')
-rw-r--r--help.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/help.h b/help.h
index 7458e745..efeded30 100644
--- a/help.h
+++ b/help.h
@@ -55,13 +55,16 @@
struct cmd_struct;
struct cmd_group;
-void usage(const char * const *usagestr) __attribute__((noreturn));
+__attribute__((noreturn))
+void usage(const char * const *usagestr);
void usage_command(const struct cmd_struct *cmd, int full, int err);
void usage_command_group(const struct cmd_group *grp, int all, int err);
void usage_command_group_short(const struct cmd_group *grp);
-void help_unknown_token(const char *arg, const struct cmd_group *grp) __attribute__((noreturn));
-void help_ambiguous_token(const char *arg, const struct cmd_group *grp) __attribute__((noreturn));
+__attribute__((noreturn))
+void help_unknown_token(const char *arg, const struct cmd_group *grp);
+__attribute__((noreturn))
+void help_ambiguous_token(const char *arg, const struct cmd_group *grp);
void help_command_group(const struct cmd_group *grp, int argc, char **argv);