btrfs-progs: fix warnings reported by -Wold-style-definition

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 <dsterba@suse.com>
This commit is contained in:
David Sterba 2024-06-28 23:42:16 +02:00
parent 2c3a2f1437
commit 6954981f16
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;