From: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
To: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: dtc: Enable more warnings
Date: Fri, 05 Mar 2010 15:46:38 -0600 [thread overview]
Message-ID: <E1NnfLy-00073h-8R@jdl.com> (raw)
In-Reply-To: <20100304001218.GC4488@yookeroo>
[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]
> 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>
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:
$ gcc --version
gcc (Debian 4.3.2-1.1) 4.3.2
$ make check
CHK version_gen.h
CC tests/testutils.o
cc1: warnings being treated as errors
tests/testutils.c: In function âsigint_handlerâ:
tests/testutils.c:44: error: unused parameter âsiâ
tests/testutils.c:44: error: unused parameter âucâ
tests/testutils.c: In function âtest_initâ:
tests/testutils.c:52: error: unused parameter âargcâ
tests/testutils.c: In function âcheck_propertyâ:
tests/testutils.c:113: error: comparison between signed and unsigned
tests/testutils.c:117: error: comparison between signed and unsigned
make: *** [tests/testutils.o] Error 1
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
next prev parent reply other threads:[~2010-03-05 21:46 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
2010-03-04 0:12 ` David Gibson
2010-03-05 21:43 ` Jon Loeliger
2010-03-05 21:46 ` Jon Loeliger [this message]
[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=E1NnfLy-00073h-8R@jdl.com \
--to=jdl-cyomk+44s/e@public.gmane.org \
--cc=david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.