use the right type for "subparser_data" and remove the (gpointer*) cast.
2008-01-30 Michael Natterer <mitch@imendio.com> * gtk/gtkbuilderparser.c (parse_custom): use the right type for "subparser_data" and remove the (gpointer*) cast. Fixes bogus aliasing warning. * gtk/updateiconcache.c (add_string): cast const gchar* to gpointer when inserting in a GHashTable. * tests/testcalendar.c (calendar_detail_cb): remove const from return value since it's a newly allocated string. (calendar_update_details): free the detail. svn path=/trunk/; revision=19431
This commit is contained in:
committed by
Michael Natterer
parent
8a1723bccc
commit
63af2cd041
@ -636,7 +636,7 @@ parse_custom (GMarkupParseContext *context,
|
||||
{
|
||||
CommonInfo* parent_info;
|
||||
GMarkupParser parser;
|
||||
gpointer *subparser_data;
|
||||
gpointer subparser_data;
|
||||
GObject *object;
|
||||
GObject *child;
|
||||
|
||||
@ -671,7 +671,7 @@ parse_custom (GMarkupParseContext *context,
|
||||
child,
|
||||
element_name,
|
||||
&parser,
|
||||
(gpointer*)&subparser_data))
|
||||
&subparser_data))
|
||||
return FALSE;
|
||||
|
||||
data->subparser = create_subparser (object, child, element_name,
|
||||
|
||||
Reference in New Issue
Block a user