mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
girmodule: Ensure we actually use unsigned for gi_ir_module_fatal line
This commit is contained in:
parent
13791b47f6
commit
91a3399027
@ -77,7 +77,10 @@ void gi_ir_module_add_include_module (GIIrModule *module,
|
||||
|
||||
GITypelib * gi_ir_module_build_typelib (GIIrModule *module);
|
||||
|
||||
void gi_ir_module_fatal (GIIrTypelibBuild *build, unsigned int line, const char *msg, ...) G_GNUC_PRINTF (3, 4) G_GNUC_NORETURN;
|
||||
void gi_ir_module_fatal (GIIrTypelibBuild *build,
|
||||
unsigned int line,
|
||||
const char *msg,
|
||||
...) G_GNUC_PRINTF (3, 4) G_GNUC_NORETURN;
|
||||
|
||||
void gi_ir_node_init_stats (void);
|
||||
void gi_ir_node_dump_stats (void);
|
||||
|
@ -114,7 +114,7 @@ gi_ir_module_fatal (GIIrTypelibBuild *build,
|
||||
|
||||
context = g_string_new ("");
|
||||
if (line > 0)
|
||||
g_string_append_printf (context, "%d: ", line);
|
||||
g_string_append_printf (context, "%u: ", line);
|
||||
if (build->stack)
|
||||
g_string_append (context, "In ");
|
||||
for (link = g_list_last (build->stack); link; link = link->prev)
|
||||
|
@ -1104,7 +1104,7 @@ find_entry_node (GIIrTypelibBuild *build,
|
||||
}
|
||||
|
||||
|
||||
gi_ir_module_fatal (build, -1, "type reference '%s' not found", name);
|
||||
gi_ir_module_fatal (build, 0, "type reference '%s' not found", name);
|
||||
out:
|
||||
|
||||
g_strfreev (names);
|
||||
|
Loading…
Reference in New Issue
Block a user