[U-Boot] [PATCH 4/6] exports.c: fix warning: 'dummy' defined but not used
Mike Frysinger
vapier at gentoo.org
Thu Jun 24 01:32:05 CEST 2010
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
More information about the U-Boot
mailing list