On Fri, Nov 25, 2016 at 11:32:24PM +0100, Marek Vasut wrote:

> If debug() is not used, then the whole content of debug(...) will
> be removed by the preprocessor, which will result in the following
> warning. This patch adds __maybe_unused annotation to fix this.
> 
> drivers/mmc/mmc.c: In function ‘mmc_init’:
> drivers/mmc/mmc.c:1685:11: warning: variable ‘start’ set but not used 
> [-Wunused-but-set-variable]
>   unsigned start;
> 
> Signed-off-by: Marek Vasut <[email protected]>
> Cc: Pantelis Antoniou <[email protected]>
> Cc: Tom Rini <[email protected]>

Reviewed-by: Tom Rini <[email protected]>

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to