summaryrefslogtreecommitdiff
path: root/btrfs-map-logical.c
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 /btrfs-map-logical.c
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 'btrfs-map-logical.c')
-rw-r--r--btrfs-map-logical.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index 9d049955..7a8bcff9 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -190,7 +190,7 @@ static int write_extent_content(struct btrfs_fs_info *fs_info, int out_fd,
return ret;
}
-static void print_usage(void) __attribute__((noreturn));
+__attribute__((noreturn))
static void print_usage(void)
{
printf("usage: btrfs-map-logical [options] device\n");