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>
This commit is contained in:
David Gibson 2010-03-09 10:49:33 +11:00 committed by Jon Loeliger
parent 8765874963
commit 74f6a51b1f
5 changed files with 8 additions and 6 deletions

View file

@ -29,7 +29,7 @@
#include "tests.h"
#include "testdata.h"
void check_alias(void *fdt, const char *full_path, const char *alias_path)
static void check_alias(void *fdt, const char *full_path, const char *alias_path)
{
int offset, offset_a;