Whamcloud - gitweb
misc/tune2fs: fix -Wunused-variable warnings in handle_fslabel()
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:27 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:48:15 +0000 (12:48 -0500)
commit0352d353adbe6c5d6f1937e12c66e599b8657d72
treec5f9d4a4820d67b2dfd63eb3ee7bb1542fcd74f1
parentde4f0ad497b0c1cb38b0dc12b550e8a6c6581472
misc/tune2fs: fix -Wunused-variable warnings in handle_fslabel()

These warnings show up in non-Linux builds.  To fix them, only declare
local variables when they are needed.

While we're here, also make handle_fslabel() static.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c