From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 26 Nov 2016 15:44:10 -0500 Subject: [U-Boot] [PATCH 03/14] mmc: Fix warning if debug() is not used In-Reply-To: <20161125223235.3434-3-marex@denx.de> References: <20161125223235.3434-1-marex@denx.de> <20161125223235.3434-3-marex@denx.de> Message-ID: <20161126204410.GP2546@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Pantelis Antoniou > Cc: Tom Rini Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: