summaryrefslogtreecommitdiffstats
path: root/disk/part_efi.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-05-01 00:35:54 +0200
committerTom Rini <trini@konsulko.com>2016-05-27 10:01:06 -0400
commit04681cb3a4d2ef5351f94132e325fb8841d37961 (patch)
tree3a08840ee5c30d0cad667103fc05c5c2420481d8 /disk/part_efi.c
parent90a7417602e89889a703538e47e323051ecea1fd (diff)
downloadtalos-obmc-uboot-04681cb3a4d2ef5351f94132e325fb8841d37961.tar.gz
talos-obmc-uboot-04681cb3a4d2ef5351f94132e325fb8841d37961.zip
cmd: disk: Fix unused variable warning
If serial support is not compiled into U-Boot, which may be the case for some SPL builds, the following warning will be generated in disk.c: cmd/disk.c: In function 'common_diskboot': cmd/disk.c:16:6: warning: variable 'dev' set but not used [-Wunused-but-set-variable] int dev, part; ^ The warning is a result of printf() calls being optimized away, and thus the whole dev variable becomes indeed unused. Mark the variable as __maybe_unused . Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'disk/part_efi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud