From 6954981f16e6c1d6abf63d779eae9af4f4c4b412 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 28 Jun 2024 23:42:16 +0200 Subject: [PATCH] btrfs-progs: fix warnings reported by -Wold-style-definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gcc 13.3 reports: check/mode-common.c: In function ‘reset_cached_block_groups’: check/mode-common.c:590:6: warning: old-style function definition [-Wold-style-definition] 590 | void reset_cached_block_groups() | ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: David Sterba --- check/mode-common.c | 2 +- tune/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/check/mode-common.c b/check/mode-common.c index 6f3ea001..0467ba28 100644 --- a/check/mode-common.c +++ b/check/mode-common.c @@ -587,7 +587,7 @@ int check_child_node(struct extent_buffer *parent, int slot, return ret; } -void reset_cached_block_groups() +void reset_cached_block_groups(void) { struct btrfs_block_group *cache; u64 start, end; diff --git a/tune/main.c b/tune/main.c index bec89690..b0509cf1 100644 --- a/tune/main.c +++ b/tune/main.c @@ -166,7 +166,7 @@ enum btrfstune_group_enum { static bool btrfstune_cmd_groups[BTRFSTUNE_NR_GROUPS] = { 0 }; -static unsigned int btrfstune_count_set_groups() +static unsigned int btrfstune_count_set_groups(void) { int ret = 0;