Repository navigation
Commit 02cfe77
btrfs: ref-verify: Remove unused parameter from walk_up_tree() to kill warning
With gcc-4.1.2:
fs/btrfs/ref-verify.c: In function ‘btrfs_build_ref_tree’:
fs/btrfs/ref-verify.c:1017: warning: ‘root’ is used uninitialized in this function
The variable is indeed passed uninitialized, but it is never used by the
callee. However, not all versions of gcc are smart enough to notice.
Hence remove the unused parameter from walk_up_tree() to silence the
compiler warning.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 6af49db commit 02cfe77
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | | - | |
| 609 | + | |
611 | 610 | | |
612 | 611 | | |
613 | 612 | | |
| |||
984 | 983 | | |
985 | 984 | | |
986 | 985 | | |
987 | | - | |
988 | 986 | | |
989 | 987 | | |
990 | 988 | | |
| |||
1014 | 1012 | | |
1015 | 1013 | | |
1016 | 1014 | | |
1017 | | - | |
| 1015 | + | |
1018 | 1016 | | |
1019 | 1017 | | |
1020 | 1018 | | |
| |||
0 commit comments