[Spice-devel] [PATCH spice-gtk] desktop-integration: Avoid empty private structure
Frediano Ziglio
fziglio at redhat.com
Fri Feb 15 10:58:38 UTC 2019
This causes a critical warning as private structures should not
be empty.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
src/desktop-integration.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/desktop-integration.c b/src/desktop-integration.c
index 8458efaa..6f569ae2 100644
--- a/src/desktop-integration.c
+++ b/src/desktop-integration.c
@@ -38,6 +38,9 @@ struct _SpiceDesktopIntegrationPrivate {
#ifdef WITH_GNOME
GDBusProxy *gnome_session_proxy;
guint gnome_automount_inhibit_cookie;
+#else
+ /* private structures cannot be empty in GLib */
+ int dummy;
#endif
};
--
2.20.1
More information about the Spice-devel
mailing list