From ffe083c31d0a387e5092e1709daf717c21c2a98d Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 17 Jul 2025 17:38:44 -0400 Subject: Fix clang build errors Signed-off-by: Kent Overstreet --- c_src/cmd_strip_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c_src/cmd_strip_alloc.c') diff --git a/c_src/cmd_strip_alloc.c b/c_src/cmd_strip_alloc.c index c313b665..e16eb093 100644 --- a/c_src/cmd_strip_alloc.c +++ b/c_src/cmd_strip_alloc.c @@ -104,8 +104,9 @@ int cmd_strip_alloc(int argc, char *argv[]) struct bch_opts opts = bch2_opts_empty(); opt_set(opts, nostart, true); + struct bch_fs *c; reopen: - struct bch_fs *c = bch2_fs_open(&devs, &opts); + c = bch2_fs_open(&devs, &opts); int ret = PTR_ERR_OR_ZERO(c); if (ret) die("Error opening filesystem: %s", bch2_err_str(ret)); -- cgit v1.2.3