public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c
Date: Sun, 29 Apr 2012 00:25:34 +0200	[thread overview]
Message-ID: <201204290025.34264.marex@denx.de> (raw)
In-Reply-To: <1335651874-27071-1-git-send-email-marex@denx.de>

Dear Marek Vasut,

> cmd_nand.c: In function ???arg_off_size???:
> cmd_nand.c:216:5: warning: ???maxsize??? may be used uninitialized in this
> function [-Wmaybe-uninitialized]

AW CRAP ... ignore this, damn encoding problem.

> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Scott Wood <scottwood@freescale.com>
> ---
>  common/cmd_nand.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/cmd_nand.c b/common/cmd_nand.c
> index bae630d..0fd3a6c 100644
> --- a/common/cmd_nand.c
> +++ b/common/cmd_nand.c
> @@ -191,7 +191,7 @@ static int arg_off_size(int argc, char *const argv[],
> int *idx, loff_t *off, loff_t *size)
>  {
>  	int ret;
> -	loff_t maxsize;
> +	loff_t maxsize = 0;
> 
>  	if (argc == 0) {
>  		*off = 0;

Best regards,
Marek Vasut

  parent reply	other threads:[~2012-04-28 22:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-28 22:24 [U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c Marek Vasut
2012-04-28 22:24 ` [U-Boot] [PATCH 2/2] GCC47: Fix warning in md5.c Marek Vasut
2012-04-28 22:25 ` Marek Vasut [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-28 22:28 [U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c Marek Vasut
2012-04-29 12:11 ` Wolfgang Denk
2012-04-29 13:11   ` Marek Vasut
2012-04-29 18:08     ` Wolfgang Denk
2012-04-29 18:22       ` Marek Vasut

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=201204290025.34264.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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