mbox series

[0/2] btrfs-progs: -Wshadow fixes

Message ID cover.1695873867.git.wqu@suse.com (mailing list archive)
Headers show
Series btrfs-progs: -Wshadow fixes | expand

Message

Qu Wenruo Sept. 28, 2023, 4:06 a.m. UTC
Since -Wshadow is enabled recently, there are two new warnings:

- @e from cmd_inspect_list_chunks()
- @csum from print_header_info()
  This needs experimental features to be enabled

Just fix them all.

Qu Wenruo (2):
  btrfs-progs: remove variable e from cmd_inspect_list_chunks()
  btrfs-progs: fix a variable shadowing when enabling experimental
    features

 cmds/inspect.c             | 4 +---
 kernel-shared/print-tree.c | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

--
2.42.0

Comments

David Sterba Oct. 2, 2023, 3:17 p.m. UTC | #1
On Thu, Sep 28, 2023 at 01:36:32PM +0930, Qu Wenruo wrote:
> Since -Wshadow is enabled recently, there are two new warnings:
> 
> - @e from cmd_inspect_list_chunks()
> - @csum from print_header_info()
>   This needs experimental features to be enabled
> 
> Just fix them all.
> 
> Qu Wenruo (2):
>   btrfs-progs: remove variable e from cmd_inspect_list_chunks()
>   btrfs-progs: fix a variable shadowing when enabling experimental
>     features

Added to devel, thanks.