dtc: Enable more warnings

David Gibson david at gibson.dropbear.id.au
Sat Mar 6 09:52:12 EST 2010


On Fri, Mar 05, 2010 at 03:46:38PM -0600, Jon Loeliger wrote:
> > This patch turns on a bunch of extra gcc warnings, most of which are
> > probably a good idea.  Of the new warnings -Wnested-externs and
> > -Wstrict-prototypes need no code changes, we're already warning-clean.
> > The remaining one, -Wmissing-prototypes requires trivial changes in
> > some of the tests (making functions local).
> > 
> > This patch also rearranges the warnings flags into a separate make
> > variable for convenience, and turns on -Werror, to really encourage
> > people to keep the code warning-clean.
> > 
> > Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
> 
> Well, I'd like to apply this patch.  But doing so appears
> to be very effective.  So much so that the "make check"
> now fails:

Ugh.  That's the -Wextra.  Somehow I managed to add the -Wextra and
thought (to my surprise) that it didn't add any extra warnings over
the ones we already had.  I was wrong, obviously.  I'm not sure quite
how I managed to miss that.  I'll resend.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson


More information about the devicetree-discuss mailing list