qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: BALATON Zoltan <balaton@eik.bme.hu>, qemu-devel@nongnu.org
Subject: Re: Unused variables in dbus_call_update_gl
Date: Fri, 30 Jun 2023 23:44:02 +0200	[thread overview]
Message-ID: <CAMxuvawjA-44aeJcXYLmdE8VRPrCOrzmBVC9AfgDqSnGXJqS7w@mail.gmail.com> (raw)
In-Reply-To: <66b37cc9-4f48-3ba5-8f3e-39f7e715970e@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 2418 bytes --]

Hi Richard

On Fri, Jun 30, 2023 at 4:31 PM Richard Henderson <
richard.henderson@linaro.org> wrote:

> On 6/29/23 15:15, BALATON Zoltan wrote:
> > On Thu, 29 Jun 2023, BALATON Zoltan wrote:
> >> Hello,
> >>
> >> After recent commits I'm now getting:
> >>
> >> ../ui/dbus-listener.c: In function ‘dbus_call_update_gl’:
> >> ../ui/dbus-listener.c:210:26: error: unused variable ‘ddl’
> >> [-Werror=unused-variable]
> >>   210 |     DBusDisplayListener *ddl = container_of(dcl,
> DBusDisplayListener,
> >> dcl);
> >>       |                          ^~~
> >> At top level:
> >> ../ui/dbus-listener.c:180:13: error: ‘dbus_update_gl_cb’ defined but
> not used
> >> [-Werror=unused-function]
> >>   180 | static void dbus_update_gl_cb(GObject *source_object,
> >>       |             ^~~~~~~~~~~~~~~~~
> >> cc1: all warnings being treated as errors
> >>
> >> when compiling on Linux with gcc.
> >
> > The patch below seems to fix compilation for me but not sure what else
> > would it break.
> >
> > Regards,
> > BALATON Zoltan
> >
> > diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
> > index e10162b279..601c134e09 100644
> > --- a/ui/dbus-listener.c
> > +++ b/ui/dbus-listener.c
> > @@ -177,6 +177,7 @@ fail:
> >   }
> >   #endif /* WIN32 */
> >
> > +#if defined (CONFIG_GBM) || defined (WIN32)
> >   static void dbus_update_gl_cb(GObject *source_object,
> >                                 GAsyncResult *res,
> >                                 gpointer user_data)
> > @@ -203,12 +204,14 @@ static void dbus_update_gl_cb(GObject
> *source_object,
> >       graphic_hw_gl_block(ddl->dcl.con, false);
> >       g_object_unref(ddl);
> >   }
> > +#endif
> >
> >   static void dbus_call_update_gl(DisplayChangeListener *dcl,
> >                                   int x, int y, int w, int h)
> >   {
> > +#if defined (CONFIG_GBM) || defined (WIN32)
> >       DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener,
> dcl);
> > -
> > +#endif
> >       trace_dbus_update_gl(x, y, w, h);
> >
> >       glFlush();
>
> I'm going to commit this later today unless Marc can immediately suggest
> something better,
> to un-break the tree.  I really should have done more thorough testing
> earlier, and not
> allowed the merge to proceed...  Ho hum.
>
>
>
Please commit, along with "[PATCH] audio: dbus requires pixman"

thanks

[-- Attachment #2: Type: text/html, Size: 3232 bytes --]

      reply	other threads:[~2023-06-30 21:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-29 12:53 Unused variables in dbus_call_update_gl BALATON Zoltan
2023-06-29 13:15 ` BALATON Zoltan
2023-06-30 14:31   ` Richard Henderson
2023-06-30 21:44     ` Marc-André Lureau [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=CAMxuvawjA-44aeJcXYLmdE8VRPrCOrzmBVC9AfgDqSnGXJqS7w@mail.gmail.com \
    --to=marcandre.lureau@redhat.com \
    --cc=balaton@eik.bme.hu \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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;
as well as URLs for NNTP newsgroup(s).