From: Pavel Hrdina Date: Mon, 12 Apr 2021 20:55:02 +0000 (+0200) Subject: qemu_conf: properly set 'deprecation_behavior' default value X-Git-Tag: v7.3.0-rc1~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c21f066d61e4186fec0a2d4b4f90e901ed5b9611;p=thirdparty%2Flibvirt.git qemu_conf: properly set 'deprecation_behavior' default value 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 Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 77fd7f6df7..68b086be54 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -295,6 +295,8 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged, &cfg->nfirmwares) < 0) return NULL; + cfg->deprecationBehavior = g_strdup("none"); + return g_steal_pointer(&cfg); }