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 <phil@raspberrypi.org>
This commit is contained in:
Phil Elwell 2014-10-17 23:22:11 +01:00 committed by David Gibson
parent 6a76a9d30c
commit 242c264270
2 changed files with 3 additions and 3 deletions

View file

@ -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),