From 5c0c4d1aebfb6cc90093e45b05e8a225c9ae065c Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 14 May 2014 21:49:09 +0200 Subject: [PATCH] tools: Fix hex2hcd compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix following with GCC version 4.8.2 (Debian 4.8.2-21): tools/hex2hcd.c: In function ‘main’: tools/hex2hcd.c:118:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (i = 0; i < hex_to_int(rbuf + 1); i++) { ^ cc1: all warnings being treated as errors --- tools/hex2hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hex2hcd.c b/tools/hex2hcd.c index c5e5e1ffe..d9b5d3b2c 100644 --- a/tools/hex2hcd.c +++ b/tools/hex2hcd.c @@ -70,10 +70,10 @@ static int check_hex_line(const char *str, unsigned int len) int main(int argc, char *argv[]) { - unsigned int addr = 0; + unsigned int i, addr = 0; FILE *ifp, *ofp; char *rbuf; - ssize_t len, i; + ssize_t len; size_t buflen; if (argc != 3) { -- 2.47.3