• Emmanuel Fleury's avatar
    Fixing various warnings in glib/gmain.c · 81a4698c
    Emmanuel Fleury authored
    glib/gmain.c:480:1: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’} [-Werror=missing-field-initializers]
     };
     ^
    In file included from glib/giochannel.h:33,
                     from glib/glib.h:54,
                     from glib/glib-unix.h:33,
                     from glib/gmain.c:50:
    glib/gmain.h:262:19: note: ‘closure_callback’ declared here
       GSourceFunc     closure_callback;
                       ^~~~~~~~~~~~~~~~
    glib/gmain.c:491:1: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’} [-Werror=missing-field-initializers]
     };
     ^
    In file included from glib/giochannel.h:33,
                     from glib/glib.h:54,
                     from glib/glib-unix.h:33,
                     from glib/gmain.c:50:
    glib/gmain.h:262:19: note: ‘closure_callback’ declared here
       GSourceFunc     closure_callback;
                       ^~~~~~~~~~~~~~~~
    glib/gmain.c:499:1: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’} [-Werror=missing-field-initializers]
     };
     ^
    In file included from glib/giochannel.h:33,
                     from glib/glib.h:54,
                     from glib/glib-unix.h:33,
                     from glib/gmain.c:50:
    glib/gmain.h:262:19: note: ‘closure_callback’ declared here
       GSourceFunc     closure_callback;
                       ^~~~~~~~~~~~~~~~
    glib/gmain.c:507:1: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’} [-Werror=missing-field-initializers]
     };
     ^
    In file included from glib/giochannel.h:33,
                     from glib/glib.h:54,
                     from glib/glib-unix.h:33,
                     from glib/gmain.c:50:
    glib/gmain.h:262:19: note: ‘closure_callback’ declared here
       GSourceFunc     closure_callback;
                       ^~~~~~~~~~~~~~~~
    glib/gmain.c: In function ‘g_source_set_callback_indirect’:
    glib/gmain.c:1615:68: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
                                                   callback_funcs->get));
                                                                        ^
    81a4698c