* Re: plugins/mbpi.c compiler warnings
2012-01-10 15:41 plugins/mbpi.c compiler warnings Marcel Holtmann
@ 2012-01-08 14:26 ` Denis Kenzior
2012-01-10 19:58 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2012-01-08 14:26 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 4152 bytes --]
Hi Marcel,
On 01/10/2012 09:41 AM, Marcel Holtmann wrote:
> CC plugins/mbpi.o
> plugins/mbpi.c: In function ‘apn_start’:
> plugins/mbpi.c:170: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c:173: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c:176: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c: In function ‘apn_handler’:
> plugins/mbpi.c:263: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c:287: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c: In function ‘provider_start’:
> plugins/mbpi.c:423: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c:425: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c:427: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c: In function ‘toplevel_gsm_start’:
> plugins/mbpi.c:459: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c:461: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c: In function ‘toplevel_cdma_start’:
> plugins/mbpi.c:493: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> plugins/mbpi.c:495: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> CC plugins/provision.o
> CC plugins/cdma-provision.o
>
What glib version are you using? Mine defines
g_markup_parse_context_push like this:
void g_markup_parse_context_push (GMarkupParseContext
*context,
const GMarkupParser
*parser,
gpointer
user_data);
Regards,
-Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
* plugins/mbpi.c compiler warnings
@ 2012-01-10 15:41 Marcel Holtmann
2012-01-08 14:26 ` Denis Kenzior
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2012-01-10 15:41 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 3674 bytes --]
CC plugins/mbpi.o
plugins/mbpi.c: In function ‘apn_start’:
plugins/mbpi.c:170: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c:173: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c:176: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c: In function ‘apn_handler’:
plugins/mbpi.c:263: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c:287: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c: In function ‘provider_start’:
plugins/mbpi.c:423: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c:425: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c:427: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c: In function ‘toplevel_gsm_start’:
plugins/mbpi.c:459: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c:461: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c: In function ‘toplevel_cdma_start’:
plugins/mbpi.c:493: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
plugins/mbpi.c:495: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
/usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
CC plugins/provision.o
CC plugins/cdma-provision.o
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: plugins/mbpi.c compiler warnings
2012-01-08 14:26 ` Denis Kenzior
@ 2012-01-10 19:58 ` Marcel Holtmann
0 siblings, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2012-01-10 19:58 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 4380 bytes --]
Hi Denis,
> > CC plugins/mbpi.o
> > plugins/mbpi.c: In function ‘apn_start’:
> > plugins/mbpi.c:170: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c:173: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c:176: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c: In function ‘apn_handler’:
> > plugins/mbpi.c:263: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c:287: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c: In function ‘provider_start’:
> > plugins/mbpi.c:423: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c:425: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c:427: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c: In function ‘toplevel_gsm_start’:
> > plugins/mbpi.c:459: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c:461: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c: In function ‘toplevel_cdma_start’:
> > plugins/mbpi.c:493: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > plugins/mbpi.c:495: warning: passing argument 2 of ‘g_markup_parse_context_push’ discards qualifiers from pointer target type
> > /usr/include/glib-2.0/glib/gmarkup.h:115: note: expected ‘struct GMarkupParser *’ but argument is of type ‘const struct GMarkupParser *’
> > CC plugins/provision.o
> > CC plugins/cdma-provision.o
> >
>
> What glib version are you using? Mine defines
> g_markup_parse_context_push like this:
>
> void g_markup_parse_context_push (GMarkupParseContext
> *context,
> const GMarkupParser
> *parser,
> gpointer
> user_data);
this was a test compile on an older version and it seems that GLib broke
their API promise again. So just lets ignore these warnings since their
is nothing we can do about it anyway.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-10 19:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10 15:41 plugins/mbpi.c compiler warnings Marcel Holtmann
2012-01-08 14:26 ` Denis Kenzior
2012-01-10 19:58 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.