From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: dtc: Enable more warnings
Date: Thu, 4 Mar 2010 11:11:48 +1100 [thread overview]
Message-ID: <20100304001148.GB4488@yookeroo> (raw)
In-Reply-To: <E1NmpN2-0001Bf-Oe-CYoMK+44s/E@public.gmane.org>
On Wed, Mar 03, 2010 at 08:16:16AM -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-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
>
> This patch didn't apply due to something wrong here:
>
> > Index: dtc/Makefile
> > ===================================================================
> > --- dtc.orig/Makefile 2010-03-03 16:10:27.235986452 +1100
> > +++ dtc/Makefile 2010-03-03 16:22:17.439987248 +1100
> > @@ -16,7 +16,9 @@ LOCAL_VERSION =
> > CONFIG_LOCALVERSION =
> >
> > CPPFLAGS = -I libfdt
> > -CFLAGS = -Wall -g -Os -fPIC -Wpointer-arith -Wcast-qual
> > +WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
> > + -Wstrict-prototypes -Wmissing-prototypes
> > +CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)
> >
> > CPPFLAGS += -std=c99 -D_XOPEN_SOURCE -D_BSD_SOURCE
> > CFLAGS += -Werror
>
>
> I think it is the extra CPPFLAGS line? I dont seem to have that.
Drat, sorry. I forgot I had an extra patch interposed in my series.
Resending.
--
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
next prev parent reply other threads:[~2010-03-04 0:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-03 5:26 dtc: Enable more warnings David Gibson
2010-03-03 14:16 ` Jon Loeliger
[not found] ` <E1NmpN2-0001Bf-Oe-CYoMK+44s/E@public.gmane.org>
2010-03-04 0:11 ` David Gibson [this message]
2010-03-04 0:12 ` David Gibson
2010-03-05 21:43 ` Jon Loeliger
2010-03-05 21:46 ` Jon Loeliger
[not found] ` <E1NnfLy-00073h-8R-CYoMK+44s/E@public.gmane.org>
2010-03-05 22:52 ` David Gibson
2010-03-08 23:49 ` David Gibson
2010-03-10 14:16 ` Jon Loeliger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100304001148.GB4488@yookeroo \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=jdl-CYoMK+44s/E@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox