Commit 5f3dfadc26c3d7c02e5fe16a743475328a85e891

Authored by Simon Glass
Committed by Wolfgang Denk
1 parent 80729a5493

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -36,6 +36,7 @@
36 36 printf("%-12s= 0x%08lX\n", name, value);
37 37 }
38 38  
  39 +__maybe_unused
39 40 static void print_eth(int idx)
40 41 {
41 42 char name[10], *val;