From: Szymon Janc <szymon.janc@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@gmail.com>
Subject: [PATCH 3/3] tools: Fix hex2hcd compilation error
Date: Wed, 14 May 2014 21:49:09 +0200 [thread overview]
Message-ID: <1400096949-18895-3-git-send-email-szymon.janc@gmail.com> (raw)
In-Reply-To: <1400096949-18895-1-git-send-email-szymon.janc@gmail.com>
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 c5e5e1f..d9b5d3b 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.0.0.rc2
next prev parent reply other threads:[~2014-05-14 19:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 19:49 [PATCH 1/3] input: Fix compilation errors on 32 bit machine Szymon Janc
2014-05-14 19:49 ` [PATCH 2/3] hog: Fix compilation error " Szymon Janc
2014-05-14 19:49 ` Szymon Janc [this message]
2014-05-14 20:15 ` [PATCH 1/3] input: Fix compilation errors " Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400096949-18895-3-git-send-email-szymon.janc@gmail.com \
--to=szymon.janc@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).