Re: [PATCH] KVM: x86: fix empty-body warnings

2018-11-25 Thread Paolo Bonzini
On 08/11/18 09:48, Yi Wang wrote: > We get the following warnings about empty statements when building > with 'W=1': > > arch/x86/kvm/lapic.c:632:53: warning: suggest braces around empty body in an > ‘if’ statement [-Wempty-body] > arch/x86/kvm/lapic.c:1907:42: warning: suggest braces around

Re: [PATCH] KVM: x86: fix empty-body warnings

2018-11-25 Thread Paolo Bonzini
On 08/11/18 09:48, Yi Wang wrote: > We get the following warnings about empty statements when building > with 'W=1': > > arch/x86/kvm/lapic.c:632:53: warning: suggest braces around empty body in an > ‘if’ statement [-Wempty-body] > arch/x86/kvm/lapic.c:1907:42: warning: suggest braces around

[PATCH] KVM: x86: fix empty-body warnings

2018-11-08 Thread Yi Wang
We get the following warnings about empty statements when building with 'W=1': arch/x86/kvm/lapic.c:632:53: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1907:42: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]

[PATCH] KVM: x86: fix empty-body warnings

2018-11-08 Thread Yi Wang
We get the following warnings about empty statements when building with 'W=1': arch/x86/kvm/lapic.c:632:53: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1907:42: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]