diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2010-03-09 10:49:33 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2010-03-10 08:12:28 -0600 |
commit | 74f6a51b1f71ffc7d9557e063630469a93eeddec (patch) | |
tree | c9f4bc016350af9bbd9b2b671d8aa4f687e7f9fc /tests/value-labels.c | |
parent | 8765874963852b2733777e69686251205238ad3d (diff) | |
download | dtc-74f6a51b1f71ffc7d9557e063630469a93eeddec.zip dtc-74f6a51b1f71ffc7d9557e063630469a93eeddec.tar.gz dtc-74f6a51b1f71ffc7d9557e063630469a93eeddec.tar.bz2 |
dtc: Enable more warnings
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@gibson.dropbear.id.au>
Diffstat (limited to 'tests/value-labels.c')
-rw-r--r-- | tests/value-labels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/value-labels.c b/tests/value-labels.c index c5aea8f..abe2721 100644 --- a/tests/value-labels.c +++ b/tests/value-labels.c @@ -59,8 +59,8 @@ struct val_label labels3[] = { { "end3", -1 }, }; -void check_prop_labels(void *sohandle, void *fdt, const char *name, - const struct val_label* labels, int n) +static void check_prop_labels(void *sohandle, void *fdt, const char *name, + const struct val_label* labels, int n) { const struct fdt_property *prop; const char *p; |