Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: plugins/mbpi.c compiler warnings
Date: Sun, 08 Jan 2012 08:26:13 -0600	[thread overview]
Message-ID: <4F09A785.4090800@gmail.com> (raw)
In-Reply-To: <1326210062.6454.209.camel@aeonflux>

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

  reply	other threads:[~2012-01-08 14:26 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 [this message]
2012-01-10 19:58   ` Marcel Holtmann

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=4F09A785.4090800@gmail.com \
    --to=denkenz@gmail.com \
    --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