mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning
@ 2011-07-03 20:53 Antony Pavlov
  2011-07-03 20:53 ` [PATCH] lib/readline.c: " Antony Pavlov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Antony Pavlov @ 2011-07-03 20:53 UTC (permalink / raw)
  To: barebox

---
 commands/bootm.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/commands/bootm.c b/commands/bootm.c
index 34164bc..e5ffacb 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -282,7 +282,6 @@ static int handler_parse_options(struct image_data *data, int opt, char *optarg)
 
 static int do_bootm(struct command *cmdtp, int argc, char *argv[])
 {
-	ulong	iflag;
 	int	opt;
 	image_header_t *os_header;
 	struct image_handle *os_handle, *initrd_handle = NULL;
@@ -344,7 +343,7 @@ static int do_bootm(struct command *cmdtp, int argc, char *argv[])
 	 * recover from any failures any more...
 	 */
 
-	iflag = disable_interrupts();
+	disable_interrupts();
 
 	puts ("OK\n");
 
-- 
1.7.5.4


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] lib/readline.c: fix unused-but-set-variable gcc warning
  2011-07-03 20:53 [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning Antony Pavlov
@ 2011-07-03 20:53 ` Antony Pavlov
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Antony Pavlov @ 2011-07-03 20:53 UTC (permalink / raw)
  To: barebox

---
 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] NiosII: fix typo in cpu/exceptions.S
  2011-07-03 20:53 [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning Antony Pavlov
  2011-07-03 20:53 ` [PATCH] lib/readline.c: " Antony Pavlov
@ 2011-07-03 20:53 ` Antony Pavlov
  2011-07-04  7:00 ` [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Antony Pavlov @ 2011-07-03 20:53 UTC (permalink / raw)
  To: barebox

---
 arch/nios2/cpu/exceptions.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/nios2/cpu/exceptions.S b/arch/nios2/cpu/exceptions.S
index a949372..8e024ce 100644
--- a/arch/nios2/cpu/exceptions.S
+++ b/arch/nios2/cpu/exceptions.S
@@ -122,7 +122,7 @@ _exception:
 	mov     r4, sp  /* ptr to regs */
 	callr   r3
 
-	/* Restore regsisters and return from exception*/
+	/* Restore registers and return from exception */
 _exception_return:
 	ldw     r1, 4(sp)
 	ldw     r2, 8(sp)
-- 
1.7.5.4


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning
  2011-07-03 20:53 [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning Antony Pavlov
  2011-07-03 20:53 ` [PATCH] lib/readline.c: " Antony Pavlov
  2011-07-03 20:53 ` [PATCH] NiosII: fix typo in cpu/exceptions.S Antony Pavlov
@ 2011-07-04  7:00 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2011-07-04  7:00 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

All applied to -next

Sascha

On Mon, Jul 04, 2011 at 12:53:01AM +0400, Antony Pavlov wrote:
> ---
>  commands/bootm.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/commands/bootm.c b/commands/bootm.c
> index 34164bc..e5ffacb 100644
> --- a/commands/bootm.c
> +++ b/commands/bootm.c
> @@ -282,7 +282,6 @@ static int handler_parse_options(struct image_data *data, int opt, char *optarg)
>  
>  static int do_bootm(struct command *cmdtp, int argc, char *argv[])
>  {
> -	ulong	iflag;
>  	int	opt;
>  	image_header_t *os_header;
>  	struct image_handle *os_handle, *initrd_handle = NULL;
> @@ -344,7 +343,7 @@ static int do_bootm(struct command *cmdtp, int argc, char *argv[])
>  	 * recover from any failures any more...
>  	 */
>  
> -	iflag = disable_interrupts();
> +	disable_interrupts();
>  
>  	puts ("OK\n");
>  
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-04  7:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-03 20:53 [PATCH] commands/bootm.c: fix unused-but-set-variable gcc warning Antony Pavlov
2011-07-03 20:53 ` [PATCH] lib/readline.c: " Antony Pavlov
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox