From: Stephen Hemminger Date: Mon, 29 Jul 2019 15:45:32 +0000 (-0700) Subject: json_print: drop extra semi-colons X-Git-Tag: v5.3.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=067925e2e1acd476420c746d8032582248bb75b1;p=thirdparty%2Fiproute2.git 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 --- diff --git a/include/json_print.h b/include/json_print.h index dbdc90e23..fe92d14ca 100644 --- a/include/json_print.h +++ b/include/json_print.h @@ -57,20 +57,21 @@ void print_nl(void); { \ print_color_##type_name(t, COLOR_NONE, key, fmt, value); \ } -_PRINT_FUNC(int, int); -_PRINT_FUNC(s64, int64_t); -_PRINT_FUNC(bool, bool); -_PRINT_FUNC(null, const char*); -_PRINT_FUNC(string, const char*); -_PRINT_FUNC(uint, unsigned int); -_PRINT_FUNC(u64, uint64_t); -_PRINT_FUNC(hhu, unsigned char); -_PRINT_FUNC(hu, unsigned short); -_PRINT_FUNC(hex, unsigned int); -_PRINT_FUNC(0xhex, unsigned long long); -_PRINT_FUNC(luint, unsigned long); -_PRINT_FUNC(lluint, unsigned long long); -_PRINT_FUNC(float, double); + +_PRINT_FUNC(int, int) +_PRINT_FUNC(s64, int64_t) +_PRINT_FUNC(bool, bool) +_PRINT_FUNC(null, const char*) +_PRINT_FUNC(string, const char*) +_PRINT_FUNC(uint, unsigned int) +_PRINT_FUNC(u64, uint64_t) +_PRINT_FUNC(hhu, unsigned char) +_PRINT_FUNC(hu, unsigned short) +_PRINT_FUNC(hex, unsigned int) +_PRINT_FUNC(0xhex, unsigned long long) +_PRINT_FUNC(luint, unsigned long) +_PRINT_FUNC(lluint, unsigned long long) +_PRINT_FUNC(float, double) #undef _PRINT_FUNC #endif /* _JSON_PRINT_H_ */