
3 May
2016
3 May
'16
1:31 a.m.
On Sun, May 01, 2016 at 12:35:54AM +0200, Marek Vasut wrote:
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: Tom Rini trini@konsulko.com
--
Tom