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
---
CC: Ian Jackson
CC: Wei L
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)
>
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)
> ~ ^ ~
>
> Si