]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
With --without-xen, avoid warning about unused function.
authorJim Meyering <meyering@redhat.com>
Fri, 22 Feb 2008 12:33:47 +0000 (12:33 +0000)
committerJim Meyering <meyering@redhat.com>
Fri, 22 Feb 2008 12:33:47 +0000 (12:33 +0000)
* tests/statstest.c (testQuietError) [!WITH_XEN]: Don't define.

ChangeLog
tests/statstest.c

index bc0cdec4c0db649450f1e038094216c4b0f9b653..fc549b2f0bc6e6d556f98f6b7585d33972785500 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Feb 22 13:32:11 CET 2008 Jim Meyering <meyering@redhat.com>
+
+       With --without-xen, avoid warning about unused function.
+       * tests/statstest.c (testQuietError) [!WITH_XEN]: Don't define.
+
 Thu Feb 21 19:22:10 CET 2008 Jim Meyering <meyering@redhat.com>
 
        Rewrite openvzSetUUID.
index 6213da8e13b9045c6fe9b0e3401c30952a28f191..2d6fc1d97280e77097ebda15abfa474cec950594 100644 (file)
@@ -7,10 +7,13 @@
 #include "stats_linux.h"
 #include "internal.h"
 
-static void testQuietError(void *userData ATTRIBUTE_UNUSED, virErrorPtr error ATTRIBUTE_UNUSED)
+#if WITH_XEN
+static void testQuietError(void *userData ATTRIBUTE_UNUSED,
+                           virErrorPtr error ATTRIBUTE_UNUSED)
 {
     /* nada */
 }
+#endif
 
 #if __linux__ && WITH_XEN
 static int testDevice(const char *path, int expect)