diff options
author | David Sterba <[email protected]> | 2024-08-21 01:19:57 +0200 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-08-26 16:58:13 +0200 |
commit | 33f58a0480bb9e2479ccdf556f61363723a50d47 (patch) | |
tree | cf006b8e1e984b37cb41a29d3efb5b39e4f6b5a5 /scripts/rustdoc_test_builder.rs | |
parent | 2d3447261031503b181dacc549fe65ffe2d93d65 (diff) |
btrfs: initialize last_extent_end to fix -Wmaybe-uninitialized warning in extent_fiemap()
There's a warning (probably on some older compiler version):
fs/btrfs/fiemap.c: warning: 'last_extent_end' may be used uninitialized in this function [-Wmaybe-uninitialized]: => 822:19
Initialize the variable to 0 although it's not necessary as it's either
properly set or not used after an error. The called function is in the
same file so this is a false alert but we want to fix all
-Wmaybe-uninitialized reports.
Link: https://lore.kernel.org/all/[email protected]/
Reported-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions