1. 04 May, 2021 7 commits
    • Philip Withnall's avatar
      Merge branch 'fix_more_warnings' into 'master' · 2cb303b7
      Philip Withnall authored
      Fix more warnings
      
      See merge request GNOME/glib!2074
      2cb303b7
    • Emmanuel Fleury's avatar
      Fix signedness warning in tests/mainloop-test.c · c339e29d
      Emmanuel Fleury authored
      tests/mainloop-test.c: In function ‘cleanup_crawlers’:
      tests/mainloop-test.c:358:15: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
        358 |   for (i=0; i < crawler_array->len; i++)
            |               ^
      c339e29d
    • Emmanuel Fleury's avatar
      Fix signedness warning in tests/dirname-test.c · dcd3af70
      Emmanuel Fleury authored
      tests/dirname-test.c: In function ‘main’:
      tests/dirname-test.c:105:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
        105 |   for (i = 0; i < n_dirname_checks; i++)
            |                 ^
      dcd3af70
    • Emmanuel Fleury's avatar
      Fix several signedness warnings in tests/gobject/performance-threaded.c · 0ddadf14
      Emmanuel Fleury authored
      tests/gobject/performance-threaded.c: In function ‘run_test’:
      tests/gobject/performance-threaded.c:302:19: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘int’
        302 |     for (i = 0; i < n_threads; i++) {
            |                   ^
      tests/gobject/performance-threaded.c:308:19: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘int’
        308 |     for (i = 0; i < n_threads; i++) {
            |                   ^
      tests/gobject/performance-threaded.c: In function ‘find_test’:
      tests/gobject/performance-threaded.c:324:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
        324 |   for (i = 0; i < G_N_ELEMENTS (tests); i++)
            |                 ^
      tests/gobject/performance-threaded.c: In function ‘main’:
      tests/gobject/performance-threaded.c:351:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
        351 |       for (i = 0; i < G_N_ELEMENTS (tests); i++)
            |                     ^
      tests/gobject/performance-threaded.c:369:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
        369 |       for (i = 0; i < G_N_ELEMENTS (tests); i++)
            |                     ^
      0ddadf14
    • Emmanuel Fleury's avatar
      Fix signedness warnings in tests/gobject/timeloop-closure.c · 7ddcc082
      Emmanuel Fleury authored
      tests/gobject/timeloop-closure.c: In function ‘read_all’:
      tests/gobject/timeloop-closure.c:42:21: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’
         42 |   while (bytes_read < len)
            |                     ^
      tests/gobject/timeloop-closure.c: In function ‘write_all’:
      tests/gobject/timeloop-closure.c:66:24: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’
         66 |   while (bytes_written < len)
            |                        ^
      7ddcc082
    • Emmanuel Fleury's avatar
      Fix signedness warnings in tests/refcount/objects.c · 7c69a1d5
      Emmanuel Fleury authored
      tests/refcount/objects.c: In function ‘main’:
      tests/refcount/objects.c:133:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘const unsigned int’}
        133 |   for (i = 0; i < n_threads; i++) {
            |                 ^
      tests/refcount/objects.c:149:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘unsigned int’
        149 |   for (i = 0; i < 2 * n_threads; i++) {
            |                 ^
      7c69a1d5
    • Emmanuel Fleury's avatar
      Fix signedness warnings in tests/gobject/performance.c · 3b424d74
      Emmanuel Fleury authored
      tests/gobject/performance.c: In function ‘find_test’:
      tests/gobject/performance.c:1019:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
       1019 |   for (i = 0; i < G_N_ELEMENTS (tests); i++)
            |                 ^
      tests/gobject/performance.c: In function ‘main’:
      tests/gobject/performance.c:1054:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
       1054 |       for (i = 0; i < G_N_ELEMENTS (tests); i++)
            |                     ^
      3b424d74
  2. 03 May, 2021 5 commits
  3. 02 May, 2021 2 commits
  4. 01 May, 2021 1 commit
  5. 29 Apr, 2021 16 commits
    • Sebastian Dröge's avatar
      Merge branch 'gdtlsconnection-vfunc-check' into 'master' · 2b3848dd
      Sebastian Dröge authored
      gdtlsconnection: Fix a check for a vfunc being implemented
      
      See merge request GNOME/glib!2075
      2b3848dd
    • Philip Withnall's avatar
      Merge branch 'gnuc_macro_updates' into 'master' · f4f9ce7b
      Philip Withnall authored
      gmacros: use G_GNUC_CHECK_VERSION
      
      Closes #2389
      
      See merge request GNOME/glib!2073
      f4f9ce7b
    • Philip Withnall's avatar
      gdtlsconnection: Fix a check for a vfunc being implemented · be57c5d1
      Philip Withnall authored
      
      
      It was checking the wrong vfunc; likely a copy/paste error.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <pwithnall@endlessos.org>
      be57c5d1
    • Nishal Kulkarni's avatar
      gtype: use G_GNUC_CHECK_VERSION · 98050b75
      Nishal Kulkarni authored
      Replace `__GLIBC__` with `G_GNUC_CHECK_VERSION`
      98050b75
    • Nishal Kulkarni's avatar
      test-printf: use G_GNUC_CHECK_VERSION · ad1fd7f9
      Nishal Kulkarni authored
      Replace `__GLIBC__` with `G_GNUC_CHECK_VERSION`
      ad1fd7f9
    • Nishal Kulkarni's avatar
      gbitlock: use G_GNUC_CHECK_VERSION · 6cc9899f
      Nishal Kulkarni authored
      Replace `__GLIBC__` with `G_GNUC_CHECK_VERSION`
      6cc9899f
    • Sebastian Dröge's avatar
      Merge branch 'fix_more_warnings' into 'master' · 8312f0b7
      Sebastian Dröge authored
      Fix more warnings
      
      See merge request GNOME/glib!2063
      8312f0b7
    • Emmanuel Fleury's avatar
      Fix signedness warning in tests/onceinit.c · b4197611
      Emmanuel Fleury authored
      tests/onceinit.c: In function ‘stress_concurrent_initializers’:
      tests/onceinit.c:267:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
        267 |   for (i = 0; i < G_N_ELEMENTS (initializers); i++)
            |                 ^
      b4197611
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in tests/gobject/defaultiface.c · b04ebbf6
      Emmanuel Fleury authored
      tests/gobject/defaultiface.c: In function ‘test_dynamic_iface_register’:
      tests/gobject/defaultiface.c:126:5: error: missing initializer for field ‘class_data’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
        126 |     };
            |     ^
      b04ebbf6
    • Emmanuel Fleury's avatar
      Fix multiple missing initializer warnings in tests/gobject/testcommon.h · 277d206d
      Emmanuel Fleury authored
      tests/gobject/testmodule.c: In function ‘test_module_get_type’:
      tests/gobject/testmodule.c:34:1: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
         34 | DEFINE_TYPE (TestModule, test_module,
            | ^~~~~~~~~~~
      
      tests/gobject/defaultiface.c: In function ‘test_static_iface_get_type’:
      tests/gobject/defaultiface.c:58:1: error: missing initializer for field ‘class_finalize’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
         58 | DEFINE_IFACE (TestStaticIface, test_static_iface,
            | ^~~~~~~~~~~~
      277d206d
    • Emmanuel Fleury's avatar
      Fix several missing initializer in tests/gobject/testgobject.c · 76af9efb
      Emmanuel Fleury authored
      tests/gobject/testgobject.c: In function ‘test_iface_get_type’:
      tests/gobject/testgobject.c:53:7: error: missing initializer for field ‘class_init’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
         53 |       };
            |       ^
      tests/gobject/testgobject.c: In function ‘test_object_get_type’:
      tests/gobject/testgobject.c:182:7: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
        182 |       };
            |       ^
      tests/gobject/testgobject.c: In function ‘derived_object_get_type’:
      tests/gobject/testgobject.c:349:7: error: missing initializer for field ‘value_table’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’}
        349 |       };
            |       ^
      76af9efb
    • Emmanuel Fleury's avatar
      Fix several missing initializer warnings in gio/tests/basic-application.c · 180c1a18
      Emmanuel Fleury authored
      gio/tests/basic-application.c: In function ‘startup’:
      gio/tests/basic-application.c:57:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
         57 |     { "new", new_activated, NULL, NULL, NULL },
            |     ^
      gio/tests/basic-application.c:58:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
         58 |     { "quit", quit_activated, NULL, NULL, NULL },
            |     ^
      gio/tests/basic-application.c:59:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
         59 |     { "action1", action1_activated, NULL, NULL, NULL },
            |     ^
      gio/tests/basic-application.c:60:5: error: missing initializer for field ‘padding’ of ‘GActionEntry’ {aka ‘struct _GActionEntry’}
         60 |     { "action2", action2_activated, "b", "false", change_action2 }
            |     ^
      180c1a18
    • Emmanuel Fleury's avatar
      Fix several missing initializer warnings in gio/tests/dbus-appinfo.c · 4a503bdb
      Emmanuel Fleury authored
      gio/tests/dbus-appinfo.c:177:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ {aka ‘const struct _GActionEntry’}
        177 |   { "frob",         test_application_frob              },
            |   ^
      gio/tests/dbus-appinfo.c:178:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ {aka ‘const struct _GActionEntry’}
        178 |   { "tweak",        test_application_tweak             },
            |   ^
      gio/tests/dbus-appinfo.c:179:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ {aka ‘const struct _GActionEntry’}
        179 |   { "twiddle",      test_application_twiddle           },
            |   ^
      gio/tests/dbus-appinfo.c:180:3: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ {aka ‘const struct _GActionEntry’}
        180 |   { "quit",         test_application_quit              }
            |   ^
      4a503bdb
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/tests/readwrite.c · 4ad62f7f
      Emmanuel Fleury authored
      gio/tests/readwrite.c: In function ‘verify_iostream’:
      gio/tests/readwrite.c:77:17: error: comparison of integer expressions of different signedness: ‘gboolean’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’}
         77 |   g_assert (res == strlen (original_data) - 15);
            |                 ^~
      4ad62f7f
    • Emmanuel Fleury's avatar
      Fix several signedness warnings in gio/tests/unix-streams.c · a9652620
      Emmanuel Fleury authored
      gio/tests/unix-streams.c: In function ‘test_write_async_wouldblock’:
      gio/tests/unix-streams.c:692:17: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
        692 |   for (i = 0; i < 4 * pipe_capacity; i++)
            |                 ^
      gio/tests/unix-streams.c: In function ‘test_writev_async_wouldblock’:
      gio/tests/unix-streams.c:780:17: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
        780 |   for (i = 0; i < 4 * pipe_capacity; i++)
            |                 ^
      a9652620
    • Sebastian Dröge's avatar
      Merge branch 'fix-documentation-of-limit-in-gstringreplace' into 'master' · 28b18cab
      Sebastian Dröge authored
      gstring: Cleanup documentation of g_string_replace
      
      See merge request GNOME/glib!2071
      28b18cab
  6. 27 Apr, 2021 9 commits