[U-Boot] [PATCH 4/6 v4] exports.c: fix warning: 'dummy' defined but not used

Wolfgang Denk wd at denx.de
Thu Jul 1 09:31:38 CEST 2010


Also get rid of the #ifdef's while doing this.

Suggested-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Wolfgang Denk <wd at denx.de>
---
v2:	fix compile problem for some boards.
v3:	get rid of #ifdef mess and use attribute instead as suggested
	by Mike Frysinger
v4:	Avoid separate prototype declaration.

 common/exports.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/exports.c b/common/exports.c
index 60bba75..ceee73a 100644
--- a/common/exports.c
+++ b/common/exports.c
@@ -3,7 +3,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static void dummy(void)
+__attribute__((unused)) static void dummy(void)
 {
 }
 
-- 
1.7.0.1



More information about the U-Boot mailing list