Skip to content
Snippets Groups Projects
  1. Mar 26, 2022
  2. Mar 22, 2022
  3. Mar 19, 2022
  4. Mar 18, 2022
  5. Mar 11, 2022
  6. Mar 01, 2022
  7. Feb 27, 2022
    • Evangelos Ribeiro Tzaras's avatar
      matrix: Use G_GSIZE_FORMAT as format identifier for size types · f0996baf
      Evangelos Ribeiro Tzaras authored
      In file included from ../src/matrix/matrix-api.c:29:
      ../src/matrix/matrix-api.c: In function ‘handle_one_time_keys’:
      ../src/matrix/matrix-api.c:554:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
        554 |     CHATTY_TRACE_MSG ("generating %lu onetime keys", limit - count);
            |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~
            |                                                            |
            |                                                            size_t {aka unsigned int}
      ../src/chatty-log.h:25:26: note: in definition of macro ‘CHATTY_TRACE_MSG’
         25 |               G_STRFUNC, fmt, ##__VA_ARGS__)
            |                          ^~~
      ../src/matrix/matrix-api.c:554:37: note: format string is defined here
        554 |     CHATTY_TRACE_MSG ("generating %lu onetime keys", limit - count);
            |                                   ~~^
            |                                     |
            |                                     long unsigned int
            |                                   %u
      f0996baf
    • Evangelos Ribeiro Tzaras's avatar
      mmsd: Use gsize type and suitable format identifier · 9c627f52
      Evangelos Ribeiro Tzaras authored
      Fixes warnings on some architectures:
      
      ../src/mm/chatty-mmsd.c: In function ‘chatty_mmsd_send_mms_create_attachments’:
      ../src/mm/chatty-mmsd.c:485:18: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘gsize’ {aka ‘unsigned int’} [-Wformat=]
        485 |       g_warning ("Size of attachments that can't be resized %ld greater then maximum attachment size %d",
            |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        486 |                  other_attachments_size, self->max_attach_size);
            |                  ~~~~~~~~~~~~~~~~~~~~~~
            |                  |
            |                  gsize {aka unsigned int}
      /usr/include/glib-2.0/glib/gmessages.h:323:63: note: in definition of macro ‘g_warning’
        323 |                                                    G_STRFUNC, __VA_ARGS__)
            |                                                               ^~~~~~~~~~~
      ../src/mm/chatty-mmsd.c:485:63: note: format string is defined here
        485 |       g_warning ("Size of attachments that can't be resized %ld greater then maximum attachment size %d",
            |                                                             ~~^
            |                                                               |
            |                                                               long int
            |                                                             %d
      9c627f52
    • Evangelos Ribeiro Tzaras's avatar
      media: Use G_GSIZE_FORMAT as format identifier for size types · 8aba0ba9
      Evangelos Ribeiro Tzaras authored
      Fixes warnings on some architectures:
      
      ../src/chatty-media.c: In function ‘chatty_media_scale_image_to_size_sync’:
      ../src/chatty-media.c:205:16: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘gsize’ {aka ‘unsigned int’} [-Wformat=]
        205 |       g_debug ("Resized at quality %s to size %lu", *quality, new_size);
            |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            ~~~~~~~~
            |                                                               |
            |                                                               gsize {aka unsigned int}
      /usr/include/glib-2.0/glib/gmessages.h:329:63: note: in definition of macro ‘g_debug’
        329 |                                                    G_STRFUNC, __VA_ARGS__)
            |                                                               ^~~~~~~~~~~
      ../src/chatty-media.c:205:49: note: format string is defined here
        205 |       g_debug ("Resized at quality %s to size %lu", *quality, new_size);
            |                                               ~~^
            |                                                 |
            |                                                 long unsigned int
            |                                               %u
      8aba0ba9
  8. Feb 25, 2022
  9. Feb 19, 2022
  10. Feb 08, 2022
  11. Feb 04, 2022
  12. Feb 03, 2022
  13. Feb 02, 2022
  14. Feb 01, 2022
  15. Jan 31, 2022