From: Rusty Russell Date: Thu, 29 Mar 2012 04:28:23 +0000 (+1030) Subject: ccan_tokenizer: don't assume __VA_ARGS__ can be empty. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=9bf73235ffc8b7b9846a459f40516f7b16de6b1a ccan_tokenizer: don't assume __VA_ARGS__ can be empty. That's a gcc extension. --- diff --git a/ccan/ccan_tokenizer/test/run.c b/ccan/ccan_tokenizer/test/run.c index 92fe43c6..d3f04329 100644 --- a/ccan/ccan_tokenizer/test/run.c +++ b/ccan/ccan_tokenizer/test/run.c @@ -915,7 +915,7 @@ struct tokenizer_msg_test { #define M(...) array_count_pair(const char *, __VA_ARGS__) struct tokenizer_test tokenizer_tests[] = { - T(""), + { "", 0, 0 }, T("\n", {.type = TOK_WHITE, txt("\n")} ),