Re: [Xen-devel] [PATCH for-4.7 1/7] tools/xenstat: Avoid comparing '0 <= unsigned integer'

2016-04-27 Thread Doug Goldstein
On 4/27/16 12:01 PM, Andrew Cooper wrote: > Clang points out that this is tautological. > > src/xenstat.c:325:8: warning: comparison of 0 <= unsigned expression is > always true [-Wtautological-compare] > if (0 <= index && index < node->num_domains) > ~ ^ ~ > >

Re: [Xen-devel] [PATCH for-4.7 1/7] tools/xenstat: Avoid comparing '0 <= unsigned integer'

2016-04-27 Thread Wei Liu
On Wed, Apr 27, 2016 at 06:01:20PM +0100, Andrew Cooper wrote: > Clang points out that this is tautological. > > src/xenstat.c:325:8: warning: comparison of 0 <= unsigned expression is > always true [-Wtautological-compare] > if (0 <= index && index < node->num_domains) >

[Xen-devel] [PATCH for-4.7 1/7] tools/xenstat: Avoid comparing '0 <= unsigned integer'

2016-04-27 Thread Andrew Cooper
Clang points out that this is tautological. src/xenstat.c:325:8: warning: comparison of 0 <= unsigned expression is always true [-Wtautological-compare] if (0 <= index && index < node->num_domains) ~ ^ ~ Signed-off-by: Andrew Cooper