[Spice-devel] [PATCH spice-gtk] desktop-integration: Avoid empty private structure
Marc-André Lureau
marcandre.lureau at gmail.com
Fri Feb 15 15:36:39 UTC 2019
On Fri, Feb 15, 2019 at 3:57 PM Frediano Ziglio <fziglio at redhat.com> wrote:
>
> This causes a critical warning as private structures should not
> be empty.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
ack
> ---
> 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
--
Marc-André Lureau
More information about the Spice-devel
mailing list