Re: [U-Boot] [PATCH] image: Fix loop condition to avoid warning

2015-08-21 Thread Simon Glass
On 20 August 2015 at 03:45, Thierry Reding wrote: > From: Thierry Reding > > GCC 5.1 starts warning for comparisons such as !a > 0, assuming that the > negation was meant to apply to the whole expression rather than just the > left operand. > > Indeed the comparison in the FIT loadable code is co

Re: [U-Boot] [PATCH] image: Fix loop condition to avoid warning

2015-08-20 Thread Tom Rini
On Thu, Aug 20, 2015 at 11:45:43AM +0200, Thierry Reding wrote: > From: Thierry Reding > > GCC 5.1 starts warning for comparisons such as !a > 0, assuming that the > negation was meant to apply to the whole expression rather than just the > left operand. > > Indeed the comparison in the FIT loa

[U-Boot] [PATCH] image: Fix loop condition to avoid warning

2015-08-20 Thread Thierry Reding
From: Thierry Reding GCC 5.1 starts warning for comparisons such as !a > 0, assuming that the negation was meant to apply to the whole expression rather than just the left operand. Indeed the comparison in the FIT loadable code is confusingly written, though it does end up doing the right thing.