]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-host-validate: Fix build on non-Linux
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Oct 2018 07:10:07 +0000 (09:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Oct 2018 07:55:40 +0000 (09:55 +0200)
For non-Linux platforms we have
virHostValidateCGroupControllers() stub which only reports an
error. But we are not marking the ignored arguments the way we
should.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tools/virt-host-validate-common.c

index 4e70fe9e9cd6ba9ba06d830114cff99153f1a5cb..73e3bdb34c13336cb2b61f6ce9ec6399d1f9abcf 100644 (file)
@@ -322,8 +322,8 @@ int virHostValidateCGroupControllers(const char *hvname,
     return ret;
 }
 #else /*  !__linux__ */
-int virHostValidateCGroupControllers(const char *hvname,
-                                     int controllers,
+int virHostValidateCGroupControllers(const char *hvname ATTRIBUTE_UNUSED,
+                                     int controllers ATTRIBUTE_UNUSED,
                                      virHostValidateLevel level)
 {
     virHostMsgFail(level, "%s", "This platform does not support cgroups");