projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c21835
)
Fix clang's -Wmain complain (#1678)
author
Ebrahim Byagowi
<ebrahim@gnu.org>
Tue, 23 Apr 2019 08:10:46 +0000
(
01:10
-0700)
committer
GitHub
<noreply@github.com>
Tue, 23 Apr 2019 08:10:46 +0000
(
01:10
-0700)
src/test-iter.cc
patch
|
blob
|
history
diff --git
a/src/test-iter.cc
b/src/test-iter.cc
index
93a4852
..
cf1e6d6
100644
(file)
--- a/
src/test-iter.cc
+++ b/
src/test-iter.cc
@@
-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;
}