mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vircgroup: Remove unused variables in virCgroupV2Available
After recent commit 'contFile' and 'contStr' became unused breaking
build with clang:
../../../libvirt/src/util/vircgroupv2.c:72:26: error: unused variable 'contFile' [-Werror,-Wunused-variable]
g_autofree char *contFile = NULL;
^
../../../libvirt/src/util/vircgroupv2.c:73:26: error: unused variable 'contStr' [-Werror,-Wunused-variable]
g_autofree char *contStr = NULL;
^
Fixes: a0f37232b9
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a0f37232b9
commit
e49313b54e
@ -69,9 +69,6 @@ virCgroupV2Available(void)
|
||||
return false;
|
||||
|
||||
while (getmntent_r(mounts, &entry, buf, sizeof(buf)) != NULL) {
|
||||
g_autofree char *contFile = NULL;
|
||||
g_autofree char *contStr = NULL;
|
||||
|
||||
if (STRNEQ(entry.mnt_type, "cgroup2"))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user