]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Disable of unused sysinfotest functions
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 3 Apr 2013 14:54:27 +0000 (15:54 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 4 Apr 2013 10:07:00 +0000 (11:07 +0100)
Certain functions in the sysinfotest.c are not used unless
a whitelisted architecture is being built. Disable those
functions unless required to avoid warnings about unused
functions.

sysinfotest.c:93:1: warning: 'sysinfotest_run' defined but not used [-Wunused-function]
 sysinfotest_run(const char *test,

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/sysinfotest.c

index aee57e6642442a2711880b3098fe8dd34f848e17..94493a37dc7a77d615216ea9dee8d6e434968033 100644 (file)
 
 #if defined (__linux__)
 
+# if defined(__s390__) || defined(__s390x__) || \
+     defined(__powerpc__) || defined(__powerpc64__) || \
+     defined(__i386__) || defined(__x86_64__) || defined(__amd64__)
+
 /* from sysinfo.c */
 void virSysinfoSetup(const char *decoder,
                      const char *sysinfo,
@@ -122,6 +126,7 @@ error:
     VIR_FREE(testdata.expected);
     return ret;
 }
+# endif
 
 # if defined(__s390__) || defined(__s390x__)
 static int