diff mbox

[U-Boot,10/19] 20001122-1.c: Fix GCC 4.6 build warning

Message ID 1321380163-6587-1-git-send-email-sr@denx.de
State Accepted
Commit 944416e07cb7b98193d6fcca08a1c76f6feee1d2
Headers show

Commit Message

Stefan Roese Nov. 15, 2011, 6:02 p.m. UTC
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]

Signed-off-by: Stefan Roese <sr@denx.de>
---
 post/lib_powerpc/fpu/20001122-1.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Comments

Wolfgang Denk Nov. 16, 2011, 8:16 p.m. UTC | #1
Dear Stefan Roese,

In message <1321380163-6587-1-git-send-email-sr@denx.de> 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]
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> ---
>  post/lib_powerpc/fpu/20001122-1.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/post/lib_powerpc/fpu/20001122-1.c b/post/lib_powerpc/fpu/20001122-1.c
index 4af300d..5b4f42c 100644
--- a/post/lib_powerpc/fpu/20001122-1.c
+++ b/post/lib_powerpc/fpu/20001122-1.c
@@ -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
 	{