1. 21 Dec, 2020 1 commit
  2. 18 Dec, 2020 1 commit
  3. 17 Dec, 2020 5 commits
  4. 16 Dec, 2020 13 commits
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gio/gcancellable.c · 9025969d
      Emmanuel Fleury authored
      gio/gcancellable.c:773:1: error: missing initializer for field ‘closure_marshal’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’}
        773 | };
            | ^
      In file included from glib/giochannel.h:33,
                       from glib/glib.h:54,
                       from gio/gcancellable.c:22:
      glib/gmain.h:277:23: note: ‘closure_marshal’ declared here
        277 |   GSourceDummyMarshal closure_marshal; /* Really is of type GClosureMarshal */
            |                       ^~~~~~~~~~~~~~~
      9025969d
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gio/gcontextspecificgroup.c:g_context_specific_source_new() · 058dda1b
      Emmanuel Fleury authored
      gio/gcontextspecificgroup.c: In function ‘g_context_specific_source_new’:
      gio/gcontextspecificgroup.c:77:3: error: missing initializer for field ‘closure_callback’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’}
         77 |   };
            |   ^
      In file included from glib/giochannel.h:33,
                       from glib/glib.h:54,
                       from gobject/gbinding.h:28,
                       from glib/glib-object.h:22,
                       from gio/gcontextspecificgroup.h:23,
                       from gio/gcontextspecificgroup.c:22:
      glib/gmain.h:276:19: note: ‘closure_callback’ declared here
        276 |   GSourceFunc     closure_callback;
            |                   ^~~~~~~~~~~~~~~~
      058dda1b
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gobject/tests/ifaceproperties.c:base_object_get_type() · 6ca38ccd
      Emmanuel Fleury authored
      gobject/tests/ifaceproperties.c: In function ‘base_object_get_type’:
      gobject/tests/ifaceproperties.c:321:1: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
        321 | static DEFINE_TYPE_FULL (BaseObject, base_object,
            | ^~~~~~
      In file included from gobject/gobject.h:24,
                       from gobject/gbinding.h:29,
                       from glib/glib-object.h:22,
                       from gobject/tests/ifaceproperties.c:21:
      gobject/gtype.h:1063:26: note: ‘value_table’ declared here
       1063 |   const GTypeValueTable *value_table;
            |                          ^~~~~~~~~~~
      6ca38ccd
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gobject/tests/ifaceproperties.c:test_iface_get_type() · ff5d09af
      Emmanuel Fleury authored
      gobject/tests/ifaceproperties.c: In function ‘test_iface_get_type’:
      gobject/tests/ifaceproperties.c:144:1: error: missing initializer for field ‘class_finalize’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
        144 | static DEFINE_IFACE (TestIface, test_iface, NULL, test_iface_default_init)
            | ^~~~~~
      In file included from gobject/gobject.h:24,
                       from gobject/gbinding.h:29,
                       from glib/glib-object.h:22,
                       from gobject/tests/ifaceproperties.c:21:
      gobject/gtype.h:1054:26: note: ‘class_finalize’ declared here
       1054 |   GClassFinalizeFunc     class_finalize;
            |                          ^~~~~~~~~~~~~~
      ff5d09af
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gio/inotify/inotify-kernel.c:ik_source_new() · 3b02d464
      Emmanuel Fleury authored
      gio/inotify/inotify-kernel.c: In function ‘ik_source_new’:
      gio/inotify/inotify-kernel.c:377:3: error: missing initializer for field ‘finalize’ of ‘GSourceFuncs’ {aka ‘struct _GSourceFuncs’}
        377 |   };
            |   ^
      In file included from glib/giochannel.h:33,
                       from glib/glib.h:54,
                       from gio/inotify/inotify-kernel.c:30:
      glib/gmain.h:272:14: note: ‘finalize’ declared here
        272 |   void     (*finalize) (GSource    *source); /* Can be NULL */
            |              ^~~~~~~~
      3b02d464
    • Emmanuel Fleury's avatar
      Fix signedness warning in gobject/tests/signals.c:test_introspection() · 805053d0
      Emmanuel Fleury authored
      gobject/tests/signals.c: In function ‘test_introspection’:
      gobject/tests/signals.c:1180:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
       1180 |   for (i = 0; i < n_ids; i++)
            |                 ^
      805053d0
    • Emmanuel Fleury's avatar
      Fix signedness warnings in gobject/tests/properties.c:properties_get_property() · 176b2047
      Emmanuel Fleury authored
      gobject/tests/properties.c: In function ‘properties_get_property’:
      gobject/tests/properties.c:562:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
        562 |   for (i = 0; i < G_N_ELEMENTS (test_props); i++)
            |                 ^
      gobject/tests/properties.c:583:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
        583 |   for (i = 0; i < G_N_ELEMENTS (test_props); i++)
            |                 ^
      176b2047
    • Philip Withnall's avatar
      Merge branch 'fix_more_warnings' into 'master' · db70edb6
      Philip Withnall authored
      Fix more warnings
      
      See merge request !1773
      db70edb6
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gobject/tests/dynamictests.c:test_module_get_type() · 8fb696e0
      Emmanuel Fleury authored
      gobject/tests/dynamictests.c: In function ‘test_module_get_type’:
      gobject/tests/dynamictests.c:97:7: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
         97 |       };
            |       ^
      In file included from gobject/gobject.h:24,
                       from gobject/gbinding.h:29,
                       from glib/glib-object.h:22,
                       from gobject/tests/dynamictests.c:23:
      gobject/gtype.h:1063:26: note: ‘value_table’ declared here
       1063 |   const GTypeValueTable *value_table;
            |                          ^~~~~~~~~~~
      8fb696e0
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gobject/gparam.c:g_param_type_register_static() · 34cb2255
      Emmanuel Fleury authored
      gobject/gparam.c: In function ‘g_param_type_register_static’:
      gobject/gparam.c:1434:3: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘struct _GTypeInfo’}
       1434 |   };
            |   ^
      In file included from gobject/gvalue.h:26,
                       from gobject/gparam.h:26,
                       from gobject/gparam.c:26:
      gobject/gtype.h:1063:26: note: ‘value_table’ declared here
       1063 |   const GTypeValueTable *value_table;
            |                          ^~~~~~~~~~~
      34cb2255
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gobject/gtypemodule.c:g_type_module_get_type() · dd16d1e8
      Emmanuel Fleury authored
      gobject/gtypemodule.c: In function ‘g_type_module_get_type’:
      gobject/gtypemodule.c:154:7: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
        154 |       };
            |       ^
      In file included from gobject/gtypeplugin.h:24,
                       from gobject/gtypemodule.c:22:
      gobject/gtype.h:1063:26: note: ‘value_table’ declared here
       1063 |   const GTypeValueTable *value_table;
            |                          ^~~~~~~~~~~
      dd16d1e8
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gobject/gtypeplugin.c:g_type_plugin_get_type() · 12ec1eb0
      Emmanuel Fleury authored
      gobject/gtypeplugin.c: In function ‘g_type_plugin_get_type’:
      gobject/gtypeplugin.c:91:7: error: missing initializer for field ‘class_init’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
         91 |       };
            |       ^
      In file included from gobject/gtypeplugin.h:24,
                       from gobject/gtypeplugin.c:20:
      gobject/gtype.h:1053:26: note: ‘class_init’ declared here
       1053 |   GClassInitFunc         class_init;
            |                          ^~~~~~~~~~
      12ec1eb0
    • Emmanuel Fleury's avatar
      Fix signedness warning in gobject/gtype.c:iface_node_has_available_offset_L() · cc754090
      Emmanuel Fleury authored
      gobject/gtype.c: In function ‘iface_node_has_available_offset_L’:
      gobject/gtype.c:1288:42: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’
       1288 |   if (G_ATOMIC_ARRAY_DATA_SIZE (offsets) <= offset)
            |                                          ^~
      cc754090
  5. 15 Dec, 2020 11 commits
  6. 14 Dec, 2020 2 commits
  7. 13 Dec, 2020 3 commits
  8. 12 Dec, 2020 4 commits