From 242c2642709436ceb144f9949868ff54050c70a2 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 17 Oct 2014 23:22:11 +0100 Subject: Improve portability 1) Remove the double parentheses around two comparisons in checks.c. The OSX LLVM-based C compiler warns about them. 2) Put an explicit "=" in the TN() macro, in accordance with c99. Signed-off-by: Phil Elwell --- fdtdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fdtdump.c') diff --git a/fdtdump.c b/fdtdump.c index a29aa5e..95a6a20 100644 --- a/fdtdump.c +++ b/fdtdump.c @@ -22,7 +22,7 @@ static const char *tagname(uint32_t tag) { static const char * const names[] = { -#define TN(t) [t] #t +#define TN(t) [t] = #t TN(FDT_BEGIN_NODE), TN(FDT_END_NODE), TN(FDT_PROP), -- cgit v1.1