summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-11-23 20:36:15 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-11-23 20:36:15 +0000
commitfc7adff08e8955efd86b4cc33cbcbc18be8d6629 (patch)
tree29c4554d1c1c1ff16356cb8981560c0761ab00ff /tests
parentc0ef1522187244c4e9bc1c42e3fa2514d5c8e1c0 (diff)
downloadgobject-introspection-fc7adff08e8955efd86b4cc33cbcbc18be8d6629.tar.gz
Make it compilable with -Werror on my system by adding a couple of
2008-11-23 Johan Dahlin <jdahlin@async.com.br> Make it compilable with -Werror on my system by adding a couple of prototypes and including headers. svn path=/trunk/; revision=960
Diffstat (limited to 'tests')
-rw-r--r--tests/invoke/testfns.c10
-rw-r--r--tests/repository/gitestrepo.c3
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/invoke/testfns.c b/tests/invoke/testfns.c
index c5e47ce9..672d77a1 100644
--- a/tests/invoke/testfns.c
+++ b/tests/invoke/testfns.c
@@ -7,6 +7,16 @@ typedef struct {
int foo;
} TestStruct;
+gint test1 (gint in);
+void test2 (gint in, gint *out);
+void test3 (gint *inout);
+void test4 (const gchar *blurb);
+void test5 (gchar **blurb, gint *len);
+gint test6 (GList *list);
+char *test7 (GList *list);
+TestStruct * test8 (int foo);
+void test9 (TestStruct *test_struct, int *out);
+
gint test1 (gint in)
{
return in + 4;
diff --git a/tests/repository/gitestrepo.c b/tests/repository/gitestrepo.c
index fcfa5177..007ce02e 100644
--- a/tests/repository/gitestrepo.c
+++ b/tests/repository/gitestrepo.c
@@ -2,8 +2,11 @@
#include "girepository.h"
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
+void test_constructor_return_type(GIBaseInfo* object_info);
+
void
test_constructor_return_type(GIBaseInfo* object_info)
{