Fix clang's -Wmain complain (#1678)

This commit is contained in:
Ebrahim Byagowi 2019-04-23 01:10:46 -07:00 committed by GitHub
parent 7c218351ab
commit 64ca2ffa4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -99,6 +99,12 @@ test_iterable (const Iterable &lst = Null(Iterable))
test_iterator (lst.iter ()); test_iterator (lst.iter ());
} }
static char *
test_func (int a, char **b)
{
return b[a];
}
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
@ -198,7 +204,7 @@ main (int argc, char **argv)
s >> vl; s >> vl;
if (0) if (0)
hb_invoke (main, 0, nullptr); hb_invoke (test_func, 0, nullptr);
return 0; return 0;
} }