[PATCH spice-gtk] desktop-integration: Avoid empty private structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This causes a critical warning as private structures should not
be empty.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]