From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 23 Jun 2010 19:32:05 -0400 Subject: [U-Boot] [PATCH 4/6] exports.c: fix warning: 'dummy' defined but not used In-Reply-To: <1277330773-28395-5-git-send-email-wd@denx.de> References: <1277330773-28395-1-git-send-email-wd@denx.de> <1277330773-28395-5-git-send-email-wd@denx.de> Message-ID: <201006231932.06406.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, June 23, 2010 18:06:11 Wolfgang Denk wrote: > --- a/common/exports.c > +++ b/common/exports.c > @@ -3,9 +3,13 @@ > > DECLARE_GLOBAL_DATA_PTR; > > +#if (!defined(CONFIG_I386) && !defined(CONFIG_PPC)) || \ > + !defined(CONFIG_CMD_I2C) || \ > + !defined(CONFIG_CMD_SPI) > static void dummy(void) > { > } > +#endif would __attribute__((unused)) be better ? then we'd avoid the #ifdef mess. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20100623/4c8bc425/attachment.pgp