mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH] lib/readline.c: fix unused-but-set-variable gcc warning
Date: Mon,  4 Jul 2011 00:53:02 +0400	[thread overview]
Message-ID: <1309726383-17932-2-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1309726383-17932-1-git-send-email-antonynpavlov@gmail.com>

---
 lib/readline.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/lib/readline.c b/lib/readline.c
index a3e1de9..5717a17 100644
--- a/lib/readline.c
+++ b/lib/readline.c
@@ -176,7 +176,6 @@ int readline(const char *prompt, char *buf, int len)
 {
 	unsigned long num = 0;
 	unsigned long eol_num = 0;
-	unsigned long rlen;
 	unsigned wlen;
 	int ichar;
 	int insert = 1;
@@ -191,7 +190,6 @@ int readline(const char *prompt, char *buf, int len)
 	puts (prompt);
 
 	while (1) {
-		rlen = 1;
 		ichar = read_key();
 
 		if ((ichar == '\n') || (ichar == '\r')) {
-- 
1.7.5.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2011-07-03 20:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-03 20:53 [PATCH] commands/bootm.c: " Antony Pavlov
2011-07-03 20:53 ` Antony Pavlov [this message]
2011-07-03 20:53 ` [PATCH] NiosII: fix typo in cpu/exceptions.S Antony Pavlov
2011-07-04  7:00 ` [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning Sascha Hauer

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=1309726383-17932-2-git-send-email-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.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