Make it compilable with -Werror on my system by adding a couple of
authorJohan Dahlin <jdahlin@async.com.br>
Sun, 23 Nov 2008 20:36:15 +0000 (20:36 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Sun, 23 Nov 2008 20:36:15 +0000 (20:36 +0000)
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

ChangeLog
tests/invoke/testfns.c
tests/repository/gitestrepo.c

index b834792..cf15744 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2008-11-23  Johan Dahlin  <jdahlin@async.com.br>
 
        Bug 562022 – gobject-introspection needs python headers
index c5e47ce..672d77a 100644 (file)
@@ -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;
index fcfa517..007ce02 100644 (file)
@@ -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)
 {