+2009-01-27 Dan Winship <danw@gnome.org>
+
+ 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.
+
2009-01-26 Johan Dahlin <jdahlin@async.com.br>
* tests/everything/everything.c (test_callback):
$$->const_string = g_strcompress (yytext + 1);
if (!g_utf8_validate ($$->const_string, -1, NULL))
{
- g_warning ("Ignoring non-UTF-8 constant string %s", $$->ident);
+ g_warning ("Ignoring non-UTF-8 constant string \"%s\"", yytext + 1);
g_free($$->const_string);
$$->const_string = NULL;
}
#include "annotation.h"
-static char backslash_parsing_tester = '\\';
+char backslash_parsing_tester = '\\';
G_DEFINE_TYPE (AnnotationObject, annotation_object, G_TYPE_OBJECT);
annotation_object_string_out(AnnotationObject *object,
char **str_out)
{
-
+ return FALSE;
}
/**
void
annotation_string_zero_terminated_out (char ***out)
{
- return NULL;
}
/**
}
-static char backslash_parsing_tester_2 = '\\';
+char backslash_parsing_tester_2 = '\\';
GObject **toown2);
GList* annotation_object_get_strings (AnnotationObject *object);
GHashTable*annotation_object_get_hash (AnnotationObject *object);
+void annotation_object_with_voidp (AnnotationObject *object,
+ void *data);
GSList* annotation_object_get_objects (AnnotationObject *object);
void annotation_object_use_buffer (AnnotationObject *object,
#include "gtkfrob.h"
void
-gtk_frob_language_manager_get_default ()
+gtk_frob_language_manager_get_default (void)
{
}
/* A global function */
-void gtk_frob_language_manager_get_default ();
+void gtk_frob_language_manager_get_default (void);
#endif /* __GTKFROB_H__ */
format_output (GTypelib *typelib)
{
GString *result;
- gint i;
+ guint i;
result = g_string_sized_new (6 * typelib->len);
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"
"{\n"