diff options
author | Alistair Popple <alistair@popple.id.au> | 2017-07-14 14:51:11 +1000 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2017-07-14 14:56:32 +1000 |
commit | 7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561 (patch) | |
tree | 1059647d639409915512d2aaf5a74e379bbe2f53 /libpdbg/device.c | |
parent | 62ddc2bfa872aeaae3bf07e8ac1d9e6b028c87ce (diff) | |
download | pdbg-7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561.tar.gz pdbg-7754a6ebe08a5b4863fe24bdbfbb6fc9e15dd561.zip |
Makefile.am: Enable -Wall -Werror for libpdbg
Several minor fixes were required to enable building on both x64 and ARM with
-Wall -Werror, mostly related to unused variables and bad printf string formats.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/device.c')
-rw-r--r-- | libpdbg/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpdbg/device.c b/libpdbg/device.c index 725d656..8995f20 100644 --- a/libpdbg/device.c +++ b/libpdbg/device.c @@ -311,7 +311,7 @@ static const char *__dt_path_split(const char *p, struct dt_node *dt_find_by_path(struct dt_node *root, const char *path) { struct dt_node *n; - const char *pn, *pa, *p = path, *nn, *na; + const char *pn, *pa = NULL, *p = path, *nn = NULL, *na = NULL; unsigned int pnl, pal, nnl, nal; bool match; |