<p dir="ltr"><br>
On Feb 26, 2016 18:54, "Jonathon Jongsma" <<a href="mailto:jjongsma@redhat.com">jjongsma@redhat.com</a>> wrote:<br>
><br>
> On Fri, 2016-02-26 at 18:50 +0100, Fabiano Fidêncio wrote:<br>
> > On Fri, Feb 26, 2016 at 5:57 PM, Jonathon Jongsma <<a href="mailto:jjongsma@redhat.com">jjongsma@redhat.com</a>> wrote:<br>
> > ><br>
> > ><br>
> > > On Fri, 2016-02-26 at 17:26 +0100, Pavel Grunt wrote:<br>
> > > > On Fri, 2016-02-26 at 17:22 +0100, Fabiano Fidêncio wrote:<br>
> > > > > This is a temporary solution for using autobuild.sh, as commit<br>
> > > > > df403f5<br>
> > > > > introduced the -Wdeprecated-declarations and gtk-vnc provides<br>
> > > > > callbacks<br>
> > > > > using a deprecated structure (GValueArray), forcing virt-viewer to<br>
> > > > > keep<br>
> > > > > using deprecated methods (g_value_array_*).<br>
> > > > ><br>
> > > > > Signed-off-by: Fabiano Fidêncio <<a href="mailto:fidencio@redhat.com">fidencio@redhat.com</a>><br>
> > > ><br>
> > > > Acked-by: Pavel Grunt <<a href="mailto:pgrunt@redhat.com">pgrunt@redhat.com</a>><br>
> > ><br>
> > ><br>
> > > perhaps worth adding a comment to the code explaining why this is used<br>
> > > though?<br>
> ><br>
> > (...) and gtk-vnc provides callbacks for getting authentication<br>
> > credentials which makes use of GValueArray, forcing virt-viewer to<br>
> > keep using deprecated methods like g_value_array_get_nth().<br>
> ><br>
> > Does it work for you, Jonathon?<br>
><br>
><br>
> For me it can be as simple as:<br>
><br>
> /* gtk-vnc uses deprecated API, so disable warnings for this file */</p>
<p dir="ltr">I am going for your suggestion, thanks.</p>
<p dir="ltr">><br>
> But yours works too.<br>
><br>
><br>
> ><br>
> > ><br>
> > ><br>
> > > ><br>
> > > > > ---<br>
> > > > >  src/virt-viewer-session-vnc.c | 2 ++<br>
> > > > >  1 file changed, 2 insertions(+)<br>
> > > > ><br>
> > > > > diff --git a/src/virt-viewer-session-vnc.c b/src/virt-viewer-session-<br>
> > > > > vnc.c<br>
> > > > > index 3321fc2..ccb08b2 100644<br>
> > > > > --- a/src/virt-viewer-session-vnc.c<br>
> > > > > +++ b/src/virt-viewer-session-vnc.c<br>
> > > > > @@ -24,6 +24,8 @@<br>
> > > > ><br>
> > > > >  #include <config.h><br>
> > > > ><br>
> > > > > +#define GLIB_DISABLE_DEPRECATION_WARNINGS<br>
> > > > > +<br>
> > > > >  #include "virt-viewer-auth.h"<br>
> > > > >  #include "virt-viewer-session-vnc.h"<br>
> > > > >  #include "virt-viewer-display-vnc.h"<br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > virt-tools-list mailing list<br>
> > > > <a href="mailto:virt-tools-list@redhat.com">virt-tools-list@redhat.com</a><br>
> > > > <a href="https://www.redhat.com/mailman/listinfo/virt-tools-list">https://www.redhat.com/mailman/listinfo/virt-tools-list</a><br>
><br>
> _______________________________________________<br>
> virt-tools-list mailing list<br>
> <a href="mailto:virt-tools-list@redhat.com">virt-tools-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/virt-tools-list">https://www.redhat.com/mailman/listinfo/virt-tools-list</a></p>