From bdbce64babe77ab1148f58426fcc710a27be87bc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 22 Feb 2008 12:33:47 +0000 Subject: [PATCH] With --without-xen, avoid warning about unused function. * tests/statstest.c (testQuietError) [!WITH_XEN]: Don't define. --- ChangeLog | 5 +++++ tests/statstest.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bc0cdec4c0..fc549b2f0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 22 13:32:11 CET 2008 Jim Meyering + + 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 Rewrite openvzSetUUID. diff --git a/tests/statstest.c b/tests/statstest.c index 6213da8e13..2d6fc1d972 100644 --- a/tests/statstest.c +++ b/tests/statstest.c @@ -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)