Browse Source

ccan_tokenizer: don't assume __VA_ARGS__ can be empty.

That's a gcc extension.
Rusty Russell 14 years ago
parent
commit
9bf73235ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/ccan_tokenizer/test/run.c

+ 1 - 1
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")}
 	),