From 35527e755cc9d78a4869c41e40a16ca6d4dd0a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20Sch=C3=B6nfeld?= Date: Tue, 3 Oct 2006 14:38:07 +0000 Subject: [PATCH] Hush compiler warnings about return values, signedness mismatches, unused * src/compiler.c, src/generate.c, src/gidlnode.c, src/gidlparser.c, src/ginfo.c, src/girepository.c, tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler warnings about return values, signedness mismatches, unused variables, and unhandles enum values in switch statements. * tests/invoke/Makefile.am: Don't install the invoke test program. Add -I ../../src to the cflags used for the test functions files. --- girepository/src/compiler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/girepository/src/compiler.c b/girepository/src/compiler.c index 2ff0c9d7a..56c842f33 100644 --- a/girepository/src/compiler.c +++ b/girepository/src/compiler.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -28,6 +29,7 @@ #include "gidlmodule.h" #include "gidlnode.h" #include "gidlparser.h" +#include "gmetadata.h" gboolean raw = FALSE; gboolean no_init = FALSE; @@ -85,7 +87,7 @@ format_output (guchar *metadata, static void write_out_metadata (gchar *prefix, - gchar *metadata, + guchar *metadata, gsize len) { FILE *file;