From f3bee7ca84e0e7f915ad425935e6279b227a00a6 Mon Sep 17 00:00:00 2001 From: Chenxi Mao Date: Tue, 4 Apr 2023 14:25:17 +0800 Subject: [PATCH] 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 0259ae76c8..29d13db030 100644 --- a/src/qemu/qemu_hotpatch.c +++ b/src/qemu/qemu_hotpatch.c @@ -214,7 +214,6 @@ qemuDomainHotpatchAutoload(virDomainObj *vm, char *hotpatch_path) g_auto(GStrv) applied_patches = NULL; g_auto(GStrv) 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.27.0