]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
fixup for old gcc
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 24 Dec 2023 00:47:08 +0000 (19:47 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 24 Dec 2023 00:47:08 +0000 (19:47 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
libbcachefs.c

index 68b750a389bc59324baa12236fe6318b87f90828..ec6b2727a8b33e4e7c862ada8adbe6a5a20f476d 100644 (file)
@@ -445,6 +445,7 @@ struct bchfs_handle bcache_fs_open(const char *path)
  */
 struct bchfs_handle bchu_fs_open_by_dev(const char *path, int *idx)
 {
+       struct bch_opts opts = bch2_opts_empty();
        char buf[1024], *uuid_str;
 
        struct stat stat = xstat(path);
@@ -469,8 +470,6 @@ struct bchfs_handle bchu_fs_open_by_dev(const char *path, int *idx)
                uuid_str = p + 1;
        } else {
 read_super:
-               struct bch_opts opts = bch2_opts_empty();
-
                opt_set(opts, noexcl,   true);
                opt_set(opts, nochanges, true);