Re: [kvm-unit-tests PATCH v1] lib: fix compilation warning

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

 



On 12.05.2017 12:47, David Hildenbrand wrote:
> GCC doesn't like comparison of signed and unsigned values.
> 
> Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>
> ---
>  lib/report.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/report.c b/lib/report.c
> index aa23b65..f7af596 100644
> --- a/lib/report.c
> +++ b/lib/report.c
> @@ -29,7 +29,7 @@ void report_pass(void)
>  void report_prefix_pushf(const char *prefix_fmt, ...)
>  {
>  	va_list va;
> -	int len;
> +	unsigned int len;
>  	int start;
>  
>  	spin_lock(&lock);

This fixes the problem for me, too:

Tested-by: Thomas Huth <thuth@xxxxxxxxxx>




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux