public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c
@ 2012-04-28 22:24 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 ` [U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c Marek Vasut
  0 siblings, 2 replies; 8+ messages in thread
From: Marek Vasut @ 2012-04-28 22:24 UTC (permalink / raw)
  To: u-boot

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

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c
@ 2012-04-28 22:28 Marek Vasut
  2012-04-29 12:11 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Marek Vasut @ 2012-04-28 22:28 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Wolfgang Denk <wd@denx.de>
---
 common/cmd_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

NOTE: Why does this emit these blahs about UTF8? I just noticed git started
behaving weird on me, anyone can give me a hint how to disable these?

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

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

end of thread, other threads:[~2012-04-29 18:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c Marek Vasut
  -- strict thread matches above, loose matches on Subject: below --
2012-04-28 22:28 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

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