未验证 提交 64ca2ffa 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

Fix clang's -Wmain complain (#1678)

上级 7c218351
......@@ -99,6 +99,12 @@ test_iterable (const Iterable &lst = Null(Iterable))
test_iterator (lst.iter ());
}
static char *
test_func (int a, char **b)
{
return b[a];
}
int
main (int argc, char **argv)
{
......@@ -198,7 +204,7 @@ main (int argc, char **argv)
s >> vl;
if (0)
hb_invoke (main, 0, nullptr);
hb_invoke (test_func, 0, nullptr);
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册