From 0559dfd4d4fa74484dae487711a986cc9acdfbfc Mon Sep 17 00:00:00 2001 From: Chenxi Mao Date: Tue, 4 Apr 2023 14:25:17 +0800 Subject: [PATCH 4/4] Fix warnings found by clang Warnings found if build with clang 15: [ 257s] ../../src/qemu/qemu_hotpatch.c:217:22: error: unused variable 'libvirtd_conf' [-Werror,-Wunused-variable] [ 257s] g_autofree char *libvirtd_conf = NULL; Signed-off-by: Chenxi Mao --- src/qemu/qemu_hotpatch.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qemu/qemu_hotpatch.c b/src/qemu/qemu_hotpatch.c index 02f511cc38..64aac9bb4c 100644 --- a/src/qemu/qemu_hotpatch.c +++ b/src/qemu/qemu_hotpatch.c @@ -214,7 +214,6 @@ qemuDomainHotpatchAutoload(virDomainObjPtr vm, char *hotpatch_path) VIR_AUTOSTRINGLIST applied_patches = NULL; VIR_AUTOSTRINGLIST lines = NULL; g_autofree char *applied_patch = NULL; - g_autofree char *libvirtd_conf = NULL; g_autofree char *patch_conf = NULL; g_autofree char *buf = NULL; char *ret = NULL; -- 2.33.0