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

Wolfgang Denk wd at denx.de
Thu Jul 1 00:44:46 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

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

diff --git a/common/exports.c b/common/exports.c
index 60bba75..8525db7 100644
--- a/common/exports.c
+++ b/common/exports.c
@@ -3,6 +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