• Jonas Ådahl's avatar
    daemon: Initialize autoptr variables · 5030084d
    Jonas Ådahl authored
    The issues were harmless, but this fixes the following compiler warning:
    
    ../src/grd-daemon.c: In function 'main':
    /home/jonas/Dev/gnome/install/include/glib-2.0/glib/gmacros.h:488:101:
    warning: 'context' may be used uninitialized in this function
    [-Wmaybe-uninitialized]
       static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName)
         (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                                                                                                         ^
    ../src/grd-daemon.c:289:29: note: 'context' was declared here
       g_autoptr(GOptionContext) context;
                                 ^~~~~~~
    
    /home/jonas/Dev/gnome/install/include/glib-2.0/glib/gmacros.h:488:101:
    warning: 'action' may be used uninitialized in this function
    [-Wmaybe-uninitialized]
       static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName)
         (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); }         \
                                                                                                         ^
    ../src/grd-daemon.c:273:28: note: 'action' was declared here
       g_autoptr(GSimpleAction) action;
                                ^~~~~~
    5030084d
Name
Last commit
Last update
..
gnome-remote-desktop.service.in Loading commit data...
grd-context.c Loading commit data...
grd-context.h Loading commit data...
grd-control.c Loading commit data...
grd-daemon.c Loading commit data...
grd-daemon.h Loading commit data...
grd-enums.h Loading commit data...
grd-private.h Loading commit data...
grd-prompt.c Loading commit data...
grd-prompt.h Loading commit data...
grd-session-vnc.c Loading commit data...
grd-session-vnc.h Loading commit data...
grd-session.c Loading commit data...
grd-session.h Loading commit data...
grd-settings.c Loading commit data...
grd-settings.h Loading commit data...
grd-stream.c Loading commit data...
grd-stream.h Loading commit data...
grd-types.h Loading commit data...
grd-vnc-pipewire-stream.c Loading commit data...
grd-vnc-pipewire-stream.h Loading commit data...
grd-vnc-server.c Loading commit data...
grd-vnc-server.h Loading commit data...
meson.build Loading commit data...
org.gnome.Mutter.RemoteDesktop.xml Loading commit data...
org.gnome.Mutter.ScreenCast.xml Loading commit data...
org.gnome.desktop.remote-desktop.gschema.xml Loading commit data...