summaryrefslogtreecommitdiff
path: root/common/cmd_bdinfo.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-12-06 13:37:17 +0000
committerWolfgang Denk <wd@denx.de>2011-12-07 08:42:28 +0100
commit5f3dfadc26c3d7c02e5fe16a743475328a85e891 (patch)
tree2e01c7c20f66d262574e2a8680bb473195ac6d8b /common/cmd_bdinfo.c
parent80729a5493874e696bc6f69a6fc8b54c3c0c5042 (diff)
downloadu-boot-imx-5f3dfadc26c3d7c02e5fe16a743475328a85e891.zip
u-boot-imx-5f3dfadc26c3d7c02e5fe16a743475328a85e891.tar.gz
u-boot-imx-5f3dfadc26c3d7c02e5fe16a743475328a85e891.tar.bz2
Fix unused function in cmd_bdinfo.c
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>
Diffstat (limited to 'common/cmd_bdinfo.c')
-rw-r--r--common/cmd_bdinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 73c03a8..67cb0da 100644
--- 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;