Re: [PATCH 6/7] Disable of unused sysinfotest functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03.04.2013 17:06, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
> ---
>  tests/sysinfotest.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/tests/sysinfotest.c b/tests/sysinfotest.c
> index aee57e6..94493a3 100644
> --- a/tests/sysinfotest.c
> +++ b/tests/sysinfotest.c
> @@ -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
> 

Seems like you (accidentally?) pushed this one already.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]