提交 0464ab18 编写于 作者: D Daniel P. Berrange

Disable of unused sysinfotest functions

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: NDaniel P. Berrange <berrange@redhat.com>
上级 6263fc5a
......@@ -38,6 +38,10 @@
#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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册