Skip to contentSkip to conversation

20001122-1.c: Fix GCC 4.6 build warning

PATCH New Stefan Roese 2 participants 2 messages Nov 15, 2011 – Nov 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 10/19 20001122-1.c: Fix GCC 4.6 build warning

Fix:
20001122-1.c: In function 'fpu_post_test_math1':
20001122-1.c:37:22: warning: variable 'p' set but not used [-Wunused-but-set-variable]

---
 post/lib_powerpc/fpu/20001122-1.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
post/lib_powerpc/fpu/20001122-1.c +1 -2
index 4af300d..5b4f42c 100644
@@ -34,12 +34,11 @@ GNU_FPOST_ATTR
 
 int fpu_post_test_math1 (void)
 {
-	volatile double a, *p;
+	volatile double a;
 	double c, d;
 	volatile double b;
 
 	d = 1.0;
-	p = &b;
 
 	do
 	{
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH 10/19 20001122-1.c: Fix GCC 4.6 build warning

Dear Stefan Roese,

Quoted 8 lines · In message <[email protected]> you wrote:

Fix:
20001122-1.c: In function 'fpu_post_test_math1':
20001122-1.c:37:22: warning: variable 'p' set but not used [-Wunused-but-set-variable]

---
 post/lib_powerpc/fpu/20001122-1.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The universe, they said, depended for its operation on the balance of
four forces which they identified as charm,  persuasion,  uncertainty
and bloody-mindedness.      -- Terry Pratchett, "The Light Fantastic"