mirror of
https://github.com/dgibson/dtc.git
synced 2026-01-22 01:30:34 -05: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
|
|
@ -28,7 +28,7 @@
|
|||
#include "tests.h"
|
||||
#include "testdata.h"
|
||||
|
||||
void check_extranull(void *fdt, const char *prop, const char *str, int numnulls)
|
||||
static void check_extranull(void *fdt, const char *prop, const char *str, int numnulls)
|
||||
{
|
||||
int len = strlen(str);
|
||||
char checkbuf[len+numnulls];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue