mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix unused variable warnings
Resolved unused variable warnings observed after restricting -Wno-unused-but-set-variable to only libzfs and libzpool. Reviewed-by: DHE <git@dehacked.net> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #6941
This commit is contained in:
@@ -2271,11 +2271,9 @@ do_import(nvlist_t *config, const char *newname, const char *mntopts,
|
||||
int ret = 0;
|
||||
zpool_handle_t *zhp;
|
||||
char *name;
|
||||
uint64_t state;
|
||||
uint64_t version;
|
||||
|
||||
name = fnvlist_lookup_string(config, ZPOOL_CONFIG_POOL_NAME);
|
||||
state = fnvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_STATE);
|
||||
version = fnvlist_lookup_uint64(config, ZPOOL_CONFIG_VERSION);
|
||||
|
||||
if (!SPA_VERSION_IS_SUPPORTED(version)) {
|
||||
|
||||
Reference in New Issue
Block a user