[Libguestfs] [PATCH] p2v: Ignore gtk2 deprecated declarations.

Pino Toscano ptoscano at redhat.com
Fri Aug 30 10:35:00 UTC 2019


On Thursday, 29 August 2019 20:14:01 CEST Richard W.M. Jones wrote:
> On latest Gtk2 the following warnings in main.c and gui.c cause the
> build to fail if warn-error is enabled.
> 
> In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
>                  from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
>                  from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
>                  from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
>                  from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
>                  from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
>                  from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
>                  from /usr/include/gtk-2.0/gtk/gtk.h:33,
>                  from gui.c:82:
> /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
>   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
>       | ^~~~
> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
>                  from /usr/include/glib-2.0/glib-object.h:23,
>                  from /usr/include/glib-2.0/gio/gioenums.h:28,
>                  from /usr/include/glib-2.0/gio/giotypes.h:28,
>                  from /usr/include/glib-2.0/gio/gio.h:26,
>                  from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
>                  from /usr/include/gtk-2.0/gdk/gdk.h:32,
>                  from /usr/include/gtk-2.0/gtk/gtk.h:32,
>                  from gui.c:82:
> /usr/include/glib-2.0/gobject/gtype.h:677:1: note: declared here
>   677 | {
>       | ^

Hmm they come from GTK headers directly, and the reported bits are only
in deprecated sections of API... most probably we can just disable
deprecated GTK stuff.

I just send an alternative patch series for this, can you please check
it?

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20190830/272204cf/attachment.sig>


More information about the Libguestfs mailing list