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 <[email protected]> > Cc: Simon Glass <[email protected]> > Cc: Tom Rini <[email protected]> > Reviewed-by: Simon Glass <[email protected]> > Reviewed-by: Tom Rini <[email protected]>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

