[PATCH 2/2] MIPS: bcm63xx: kbuild: remove -Werror
Artem Bityutskiy
dedekind1 at gmail.com
Sun May 6 03:36:59 EDT 2012
On Sun, 2012-05-06 at 08:06 +0100, Maciej W. Rozycki wrote:
> On Fri, 27 Apr 2012, Artem Bityutskiy wrote:
>
> > From: Artem Bityutskiy <Artem.Bityutskiy at linux.intel.com>
> >
> > I cannot build bcm963xx with the standard Kbuild W=1 switch:
> >
> > arch/mips/bcm63xx/boards/board_bcm963xx.c: At top level:
> > arch/mips/bcm63xx/boards/board_bcm963xx.c:647:5: error: no previous prototype for 'bcm63xx_get_fallback_sprom' [-Werror=missing-prototypes]
> > cc1: all warnings being treated as errors
> >
> > This patch removes the gcc switch to make W=1 work. Mips is the only
> > architecture I know which does not build with W=1 and this upsets my aiaiai
> > scripts. And in general, you never know which warnings newer versions of gcc
> > will start emiting so having -Werror by default is not the best idea.
>
> If the function has no prototype, then it cannot be reasonably used from
> outside -- perhaps you meant to mark it static instead?
No, I meant what I meant - MIPS does not build with W=1.
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120506/aed5260e/attachment.sig>
More information about the linux-mtd
mailing list