[Xfce-bugs] [Bug 15734] New: Missing initializer for field 'interface_finalize' of 'GInterfaceInfo' in THUNARX_DEFINE_TYPE_WITH_CODE
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Mon Jul 22 04:59:23 CEST 2019
https://bugzilla.xfce.org/show_bug.cgi?id=15734
Bug ID: 15734
Summary: Missing initializer for field 'interface_finalize' of
'GInterfaceInfo' in THUNARX_DEFINE_TYPE_WITH_CODE
Classification: Xfce Core
Product: Thunar
Version: 1.8.8
Hardware: HP
OS: Linux
Status: NEW
Severity: trivial
Priority: Very Low
Component: Thunarx
Assignee: xfce-bugs at xfce.org
Reporter: jeinzi at gmx.de
Target Milestone: 1.8.8
I'm currently working on the [Dropbox
plugin](https://github.com/Jeinzi/thunar-dropbox) for Thunar. I'm using this
macro:
> THUNARX_DEFINE_TYPE_WITH_CODE (TdpProvider,
> tdp_provider,
> G_TYPE_OBJECT,
> THUNARX_IMPLEMENT_INTERFACE (THUNARX_TYPE_MENU_PROVIDER,
> tdp_provider_menu_provider_init))
and I'm getting the following compiler warning:
> warning: missing initializer for field ‘interface_finalize’ of ‘GInterfaceInfo’ {aka ‘const struct _GInterfaceInfo’} [-Wmissing-field-initializers]
> 59 | THUNARX_DEFINE_TYPE_WITH_CODE (TdpProvider,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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 /home/jeinzi/Programme/C/thunar-dropbox/src/tdp-provider.c:31:
> /usr/include/glib-2.0/gobject/gtype.h:1083:26: note: ‘interface_finalize’ declared here
> 1083 | GInterfaceFinalizeFunc interface_finalize;
This is the part of the expanded macro that causes the warning:
> static const GInterfaceInfo thunarx_implement_interface_info = { (GInterfaceInitFunc) (void (*)(void)) tdp_provider_menu_provider_init };
Steps to reproduce:
git clone https://github.com/Jeinzi/thunar-dropbox.git
cd thunar-dropbox
git checkout dev-jeinzi
cmake -B build -DCMAKE_BUILD_TYPE=Release .
cmake --build build
Opinions? I'm new here - should I submit a patch that initializes
_GInterfaceInfo.interface_finalize to null?
Thanks for your time!
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list