]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
json_print: drop extra semi-colons
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 29 Jul 2019 15:45:32 +0000 (08:45 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 29 Jul 2019 15:45:32 +0000 (08:45 -0700)
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>
include/json_print.h

index dbdc90e2316ab7ed7c1ec9a133a7c069f9b15cda..fe92d14ca451fc8342a50670738df9e0fba2e0db 100644 (file)
@@ -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_ */