From 071ccc99d384ad2321b6402622f92e185d9e07c1 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 27 Jan 2009 17:17:31 +0000 Subject: Misc warning fixes * giscanner/scannerparser.y: Fix the "Ignoring non-UTF-8 constant string" error to print the right value. * tests/scanner/annotation.c (backslash_parsing_tester) (backslash_parsing_tester_2): make these non-static to avoid a warning. (annotation_object_string_out) (annotation_string_zero_terminated): fix return values * tests/scanner/annotation.h (annotation_object_with_voidp): prototype this * tests/scanner/gtkfrob.c: * tests/scanner/gtkfrob.h (gtk_frob_language_manager_get_default): fix prototype. (s/()/(void)/). * tools/compiler.c (format_output): fix signed/unsigned warning. Output a prototype for register_typelib() to avoid warnings later. svn path=/trunk/; revision=1071 --- tools/compiler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/compiler.c') diff --git a/tools/compiler.c b/tools/compiler.c index 69b49bd8..d4de9cdd 100644 --- a/tools/compiler.c +++ b/tools/compiler.c @@ -49,7 +49,7 @@ static gchar * format_output (GTypelib *typelib) { GString *result; - gint i; + guint i; result = g_string_sized_new (6 * typelib->len); @@ -75,6 +75,9 @@ format_output (GTypelib *typelib) if (!no_init) { + g_string_append_printf (result, + "__attribute__((constructor)) void " + "register_typelib (void);\n\n"); g_string_append_printf (result, "__attribute__((constructor)) void\n" "register_typelib (void)\n" -- cgit v1.2.1