From 73b9e8dc99afb0cca8dfa14d7aeec7842f029138 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 16 Aug 2015 09:00:31 -0700 Subject: [PATCH] Fix -Wgnu-zero-variadic-macro-arguments --- jv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jv.h b/jv.h index 5de3b63..8aff7e3 100644 --- a/jv.h +++ b/jv.h @@ -92,7 +92,7 @@ jv jv_array_indexes(jv, jv); #define JV_ARRAY_9(e1,e2,e3,e4,e5,e6,e7,e8,e9) (jv_array_append(JV_ARRAY_8(e1,e2,e3,e4,e5,e6,e7,e8),e9)) #define JV_ARRAY_IDX(_1,_2,_3,_4,_5,_6,_7,_8,_9,NAME,...) NAME #define JV_ARRAY(...) \ - JV_ARRAY_IDX(__VA_ARGS__, JV_ARRAY_9, JV_ARRAY_8, JV_ARRAY_7, JV_ARRAY_6, JV_ARRAY_5, JV_ARRAY_4, JV_ARRAY_3, JV_ARRAY_2, JV_ARRAY_1)(__VA_ARGS__) + JV_ARRAY_IDX(__VA_ARGS__, JV_ARRAY_9, JV_ARRAY_8, JV_ARRAY_7, JV_ARRAY_6, JV_ARRAY_5, JV_ARRAY_4, JV_ARRAY_3, JV_ARRAY_2, JV_ARRAY_1, dummy)(__VA_ARGS__) #ifdef __GNUC__ #define JV_PRINTF_LIKE(fmt_arg_num, args_num) \ -- 2.40.0