1. 16 Apr, 2021 5 commits
  2. 15 Apr, 2021 12 commits
    • Pawan Chitrakar's avatar
      Update Nepali translation · a78b7ebb
      Pawan Chitrakar authored
      (cherry picked from commit e9587a48)
      a78b7ebb
    • Sebastian Dröge's avatar
      Merge branch 'fix_more_warnings' into 'master' · 1afb4c0b
      Sebastian Dröge authored
      Fix more warnings
      
      See merge request !2047
      1afb4c0b
    • Emmanuel Fleury's avatar
      Fix missing initializer in gio/tests/gdbus-example-peer.c · fd926b1e
      Emmanuel Fleury authored
      gio/tests/gdbus-example-peer.c:120:1: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’}
        120 | };
            | ^
      fd926b1e
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gio/tests/gdbus-example-export.c · 1c084ca7
      Emmanuel Fleury authored
      gio/tests/gdbus-example-export.c:229:1: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’}
        229 | };
            | ^
      1c084ca7
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/tests/gsettings.c · 4d52358f
      Emmanuel Fleury authored
      gio/tests/gsettings.c: In function ‘strv_set_equal’:
      gio/tests/gsettings.c:2268:41: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
       2268 |     res = g_strv_length ((gchar**)strv) == count;
            |                                         ^~
      4d52358f
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gio/tests/gdbus-testserver.c · 83a9ba77
      Emmanuel Fleury authored
      gio/tests/gdbus-testserver.c:806:1: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘const struct _GDBusInterfaceVTable’}
        806 | };
            | ^
      In file included from gio/gio.h:53,
                       from gio/tests/gdbus-testserver.c:1:
      gdbusconnection.h:395:12: note: ‘padding’ declared here
        395 |   gpointer padding[8];
            |            ^~~~~~~
      83a9ba77
    • Emmanuel Fleury's avatar
      Fix multiple signedness warnings in gio/tests/gdbus-testserver.c · 5133acda
      Emmanuel Fleury authored
      gio/tests/gdbus-testserver.c: In function ‘handle_method_call’:
      gio/tests/gdbus-testserver.c:334:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        334 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:343:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        343 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:352:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        352 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:361:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        361 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:370:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        370 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:379:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        379 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:388:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        388 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:397:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        397 |         for (i = 0; i < n_elts; i++)
            |                       ^
      gio/tests/gdbus-testserver.c:406:23: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘gsize’ {aka ‘long unsigned int’}
        406 |         for (i = 0; i < n_elts; i++)
            |                       ^
      5133acda
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/tests/mimeapps.c · c3c1f6c4
      Emmanuel Fleury authored
      gio/tests/mimeapps.c: In function ‘strv_equal’:
      gio/tests/mimeapps.c:31:32: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
         31 |     res = g_strv_length (strv) == count;
            |                                ^~
      c3c1f6c4
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/tests/proxy-test.c · e7aec308
      Emmanuel Fleury authored
      gio/tests/proxy-test.c: In function ‘do_echo_test’:
      gio/tests/proxy-test.c:855:25: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘gsize’ {aka ‘long unsigned int’}
        855 |   for (total = 0; total < nwrote; total += nread)
            |                         ^
      e7aec308
    • Emmanuel Fleury's avatar
      Fix signedness warning in gio/tests/file.c · 8608eccf
      Emmanuel Fleury authored
      gio/tests/file.c: In function ‘written_cb’:
      gio/tests/file.c:358:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’}
        358 |   if (data->pos < strlen (data->data))
            |                 ^
      8608eccf
    • Sebastian Dröge's avatar
      Merge branch 'fix_more_warnings' into 'master' · 55d18fd3
      Sebastian Dröge authored
      Fix more warnings
      
      See merge request !2040
      55d18fd3
    • Sebastian Dröge's avatar
      Merge branch '2368-task-docs' into 'master' · 7c217b1c
      Sebastian Dröge authored
      gtask: Clarify what counts as ‘too many tasks’ for rate limiting
      
      Closes #2368
      
      See merge request !2045
      7c217b1c
  3. 14 Apr, 2021 9 commits
  4. 13 Apr, 2021 2 commits
  5. 09 Apr, 2021 2 commits
    • Dor Askayo's avatar
      eb6ca282
    • Jonas Ådahl's avatar
      refcount: Clarify when the ref count ends up undefined · 21cc8091
      Jonas Ådahl authored
      Calling g_atomic_ref_count_dec() or g_ref_count_dec() and the reference
      count reaches zero results in different side effects depending on
      whether the reference count is atomic or not.
      
      The intended side effect when this happens is undefined, i.e. one should
      not rely on the reference count actually reaching zero, or staying 1, or
      becoming something else, and one should treat the grefcount /
      gatomicrefcount to be unusable until reinitialized.
      
      This wasn't documented, so add a paragraph about this.
      21cc8091
  6. 08 Apr, 2021 10 commits
    • Philip Withnall's avatar
      Merge branch 'mcatanzaro/coverity-noreturn' into 'master' · 346e4867
      Philip Withnall authored
      Implement G_ANALYZER_NORETURN for Coverity
      
      See merge request !2039
      346e4867
    • Michael Catanzaro's avatar
      Implement G_ANALYZER_NORETURN for Coverity · f97ff20a
      Michael Catanzaro authored
      This change is proposed by Kamil Dudka. It teaches Coverity to assume
      that g_critical() will never return, which is desirable for the same
      reasons it is for scan-build: once you've triggered undefined behavior,
      the game is already lost, and there's limited benefit from trying to
      avoid every possible memory leak on such codepaths. Notably, this
      affects g_return_if_fail().
      
      Arguably it might be desirable to fix every such issue, but if we're
      already not doing so for scan-build, it doesn't make sense to hold
      developers working with Coverity to a higher standard. This allows
      focusing on more serious issues found by Coverity.
      
      Thanks Kamil!
      f97ff20a
    • Philip Withnall's avatar
      Merge branch 'fix-glib-unavailable-macro' into 'master' · 80c2981b
      Philip Withnall authored
      gmacros.h: Complete the use of GLIB_UNAVAILABLE_MACRO
      
      Closes #2376
      
      See merge request !2037
      80c2981b
    • Gaël Bonithon's avatar
      gmacros.h: Fix stringification in some macros · 52ad3ed7
      Gaël Bonithon authored
      This makes `GLIB_UNAVAILABLE_MACRO` and `GLIB_DEPRECATED_MACRO_FOR`
      print their arguments correctly.
      52ad3ed7
    • Gaël Bonithon's avatar
      gmacros.h: Complete the use of GLIB_AVAILABLE_MACRO_IN_* · f20bcf29
      Gaël Bonithon authored
      This adds `GLIB_AVAILABLE_MACRO_IN_*` where needed, or a comment when
      such use is not possible.
      
      Fixes #2376.
      f20bcf29
    • Philip Withnall's avatar
      Merge branch 'fix_more_warnings' into 'master' · ee242bb5
      Philip Withnall authored
      Fix more warnings
      
      See merge request !2038
      ee242bb5
    • Emmanuel Fleury's avatar
      Fix signedness warning in glib/gdate.c · b9e66a59
      Emmanuel Fleury authored
      glib/gdate.c: In function ‘convert_twodigit_year’:
      glib/gdate.c:1217:13: warning: comparison of integer expressions of
        different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
       1217 |       if (y < two)
            |             ^
      b9e66a59
    • Emmanuel Fleury's avatar
      Fix several signedness warnings in gio/tests/actions.c · 00323ac0
      Emmanuel Fleury authored
      gio/tests/actions.c: In function ‘strv_set_equal’:
      gio/tests/actions.c:177:41: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
        177 |     res = g_strv_length ((gchar**)strv) == count;
            |                                         ^~
      gio/tests/actions.c: In function ‘test_parse_detailed’:
      gio/tests/actions.c:473:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
        473 |   for (i = 0; i < G_N_ELEMENTS (testcases); i++)
            |                 ^
      00323ac0
    • Emmanuel Fleury's avatar
      Fix multiple missing initializer warnings in gio/tests/actions.c · c3d558df
      Emmanuel Fleury authored
      gio/tests/actions.c: In function ‘test_entries’:
      gio/tests/actions.c:375:5: error: missing initializer for field ‘parameter_type’ of ‘GActionEntry’ {aka ‘const struct _GActionEntry’}
        375 |     { "foo",    activate_foo                                     },
            |     ^
      In file included from gio/gio.h:31,
                       from gio/tests/actions.c:1:
      gio/gactionmap.h:63:16: note: ‘parameter_type’ declared here
         63 |   const gchar *parameter_type;
            |                ^~~~~~~~~~~~~~
      ...
      c3d558df
    • Emmanuel Fleury's avatar
      Fix missing initializer warning in gio/tests/gdbus-peer-object-manager.c · 07104295
      Emmanuel Fleury authored
      gio/tests/gdbus-peer-object-manager.c: In function ‘mock_interface_get_vtable’:
      gio/tests/gdbus-peer-object-manager.c:111:3: error: missing initializer for field ‘padding’ of ‘GDBusInterfaceVTable’ {aka ‘struct _GDBusInterfaceVTable’}
        111 |   };
            |   ^
      07104295