json_print: drop extra semi-colons

The _PRINT_FUNC() macro expands to a function call.
Putting a semi-colon is unnecessary and causes warnings with -pedantic

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2019-07-29 08:45:32 -07:00
parent c875433b14
commit 067925e2e1
1 changed files with 15 additions and 14 deletions

View File

@ -57,20 +57,21 @@ void print_nl(void);
{ \ { \
print_color_##type_name(t, COLOR_NONE, key, fmt, value); \ print_color_##type_name(t, COLOR_NONE, key, fmt, value); \
} }
_PRINT_FUNC(int, int);
_PRINT_FUNC(s64, int64_t); _PRINT_FUNC(int, int)
_PRINT_FUNC(bool, bool); _PRINT_FUNC(s64, int64_t)
_PRINT_FUNC(null, const char*); _PRINT_FUNC(bool, bool)
_PRINT_FUNC(string, const char*); _PRINT_FUNC(null, const char*)
_PRINT_FUNC(uint, unsigned int); _PRINT_FUNC(string, const char*)
_PRINT_FUNC(u64, uint64_t); _PRINT_FUNC(uint, unsigned int)
_PRINT_FUNC(hhu, unsigned char); _PRINT_FUNC(u64, uint64_t)
_PRINT_FUNC(hu, unsigned short); _PRINT_FUNC(hhu, unsigned char)
_PRINT_FUNC(hex, unsigned int); _PRINT_FUNC(hu, unsigned short)
_PRINT_FUNC(0xhex, unsigned long long); _PRINT_FUNC(hex, unsigned int)
_PRINT_FUNC(luint, unsigned long); _PRINT_FUNC(0xhex, unsigned long long)
_PRINT_FUNC(lluint, unsigned long long); _PRINT_FUNC(luint, unsigned long)
_PRINT_FUNC(float, double); _PRINT_FUNC(lluint, unsigned long long)
_PRINT_FUNC(float, double)
#undef _PRINT_FUNC #undef _PRINT_FUNC
#endif /* _JSON_PRINT_H_ */ #endif /* _JSON_PRINT_H_ */