diff --git a/src/conf/snapshot_conf.c b/src/conf/snapshot_conf.c index f280202c96..eefe4e355e 100644 --- a/src/conf/snapshot_conf.c +++ b/src/conf/snapshot_conf.c @@ -983,7 +983,6 @@ virDomainSnapshotRedefinePrep(virDomainObjPtr vm, virDomainSnapshotDefPtr *defptr, virDomainMomentObjPtr *snap, virDomainXMLOptionPtr xmlopt, - bool *update_current G_GNUC_UNUSED, unsigned int flags) { virDomainSnapshotDefPtr def = *defptr; diff --git a/src/conf/snapshot_conf.h b/src/conf/snapshot_conf.h index 7e2ffa9d60..b0b52e6a34 100644 --- a/src/conf/snapshot_conf.h +++ b/src/conf/snapshot_conf.h @@ -136,7 +136,6 @@ int virDomainSnapshotRedefinePrep(virDomainObjPtr vm, virDomainSnapshotDefPtr *def, virDomainMomentObjPtr *snap, virDomainXMLOptionPtr xmlopt, - bool *update_current, unsigned int flags); int virDomainSnapshotRedefineValidate(virDomainSnapshotDefPtr def, diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 33a8c53d24..89e4d158af 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -15903,7 +15903,7 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain, if (redefine) { if (virDomainSnapshotRedefinePrep(vm, &def, &snap, driver->xmlopt, - &update_current, flags) < 0) + flags) < 0) goto endjob; } else { /* Easiest way to clone inactive portion of vm->def is via diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 79320e6093..6c1c56d446 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -8575,7 +8575,7 @@ testDomainSnapshotCreateXML(virDomainPtr domain, if (redefine) { if (virDomainSnapshotRedefinePrep(vm, &def, &snap, privconn->xmlopt, - &update_current, flags) < 0) + flags) < 0) goto cleanup; } else { if (!(def->parent.dom = virDomainDefCopy(vm->def,