From: Tom Rini Date: Fri, 28 Aug 2015 17:01:58 -0400 Subject: [U-Boot] image: Fix loop condition to avoid warning In-Reply-To: <1440063943-23180-1-git-send-email-thierry.reding@gmail.com> References: <1440063943-23180-1-git-send-email-thierry.reding@gmail.com> Message-ID: <20150828210158.GI25532@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 loadable code is confusingly written, > though it does end up doing the right thing. Rewrite the condition to be > more explicit, that is, iterate over strings until they're exhausted. > > Signed-off-by: Thierry Reding > Reviewed-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: