mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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>
This commit is contained in:
parent
80729a5493
commit
5f3dfadc26
1 changed files with 1 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ static void print_num(const char *name, ulong value)
|
||||||
printf("%-12s= 0x%08lX\n", name, value);
|
printf("%-12s= 0x%08lX\n", name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__maybe_unused
|
||||||
static void print_eth(int idx)
|
static void print_eth(int idx)
|
||||||
{
|
{
|
||||||
char name[10], *val;
|
char name[10], *val;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue