Open Source Telephony
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: plugins/mbpi.c compiler warnings
Date: Tue, 10 Jan 2012 11:58:33 -0800	[thread overview]
Message-ID: <1326225513.6454.214.camel@aeonflux> (raw)
In-Reply-To: <4F09A785.4090800@gmail.com>

[-- 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



      reply	other threads:[~2012-01-10 19:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1326225513.6454.214.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox