]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_conf: properly set 'deprecation_behavior' default value
authorPavel Hrdina <phrdina@redhat.com>
Mon, 12 Apr 2021 20:55:02 +0000 (22:55 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 13 Apr 2021 11:21:07 +0000 (13:21 +0200)
The comment for that option states that the default value is 'none' but
it was not set by the code. By default the value is NULL which results
into the following warning:

warning : qemuBuildCompatDeprecatedCommandLine:10393 : Unsupported deprecation behavior '(null)' for VM 'test'

Fixes: 700450449377be4bf923e91d00f8fe8cf0975f66
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_conf.c

index 77fd7f6df74689917edf337f829df973c26af2d6..68b086be548251bfe81cda071ba635ef1ee6901f 100644 (file)
@@ -295,6 +295,8 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged,
                              &cfg->nfirmwares) < 0)
         return NULL;
 
+    cfg->deprecationBehavior = g_strdup("none");
+
     return g_steal_pointer(&cfg);
 }