mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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:
parent
8765874963
commit
74f6a51b1f
5 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue