From: David Tolnay Date: Sun, 16 Aug 2015 16:00:31 +0000 (-0700) Subject: Fix -Wgnu-zero-variadic-macro-arguments X-Git-Tag: jq-1.6rc1~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73b9e8dc99afb0cca8dfa14d7aeec7842f029138;p=jq Fix -Wgnu-zero-variadic-macro-arguments --- 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) \