All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Ramesh G <rameshgx87@gmail.com>
Cc: stefanha@gmail.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Fix the glib deprecated APIs
Date: Fri, 11 Jan 2013 18:01:53 +0100	[thread overview]
Message-ID: <50F04581.7080902@redhat.com> (raw)
In-Reply-To: <CAMEZSuvNX_G7kp=YZ9Gt_E2vxmiEzj6VB1iN1NxN3vRdfwMJQg@mail.gmail.com>

Il 11/01/2013 17:10, Ramesh G ha scritto:
> 
> Hi,
> 
> I got a couple of below compilation errors while compiling with glib >
> 2.32.  
> 
> $ make
>   CC    ../trace/simple.o
> ../trace/simple.c: In function ‘trace_thread_create’:
> ../trace/simple.c:407:5: error: ‘g_thread_create’ is deprecated
> (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use
> 'g_thread_new' instead [-Werror=deprecated-declarations]
> ../trace/simple.c: In function ‘trace_backend_init’:
> ../trace/simple.c:428:5: error: ‘g_cond_new’ is deprecated (declared at
> /usr/include/glib-2.0/glib/deprecated/gthread.h:275)
> [-Werror=deprecated-declarations]
> ../trace/simple.c:429:5: error: ‘g_cond_new’ is deprecated (declared at
> /usr/include/glib-2.0/glib/deprecated/gthread.h:275)
> [-Werror=deprecated-declarations]
> cc1: all warnings being treated as errors
> make: *** [../trace/simple.o] Error 1
> $ 
> 
> I found these APIs have been deprecated in 2.32.  Please find the patch
> attached which fixes this problem.  Please let me know your thoughts.

Could you instead change it to use qemu-thread?

Paolo

  parent reply	other threads:[~2013-01-11 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11 16:10 [Qemu-devel] Fix the glib deprecated APIs Ramesh G
2013-01-11 16:58 ` Peter Maydell
2013-01-11 17:01 ` Paolo Bonzini [this message]
2013-01-14  9:17   ` Stefan Hajnoczi
2013-01-14  9:21 ` Stefan Hajnoczi

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=50F04581.7080902@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rameshgx87@gmail.com \
    --cc=stefanha@gmail.com \
    /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 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.