projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80729a5
)
Fix unused function in cmd_bdinfo.c
author
Simon Glass
<sjg@chromium.org>
Tue, 6 Dec 2011 13:37:17 +0000
(13:37 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Wed, 7 Dec 2011 07:42:28 +0000
(08:42 +0100)
It is fine to use __maybe_unused instead of #ifdef, but we also need one
for print_eth() since not all boards have Ethernet. This fixes this
warning:
cmd_bdinfo.c:39:13: warning: 'print_eth' defined but not used [-Wunused-function]
Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_bdinfo.c
patch
|
blob
|
history
diff --git
a/common/cmd_bdinfo.c
b/common/cmd_bdinfo.c
index 73c03a895f74de7112fbac78bdf909736a0fde63..67cb0dad8345c8baf1ef563c53ea52aedb080683 100644
(file)
--- a/
common/cmd_bdinfo.c
+++ b/
common/cmd_bdinfo.c
@@
-36,6
+36,7
@@
static void print_num(const char *name, ulong value)
printf("%-12s= 0x%08lX\n", name, value);
}
+__maybe_unused
static void print_eth(int idx)
{
char name[10], *val;