1. Nov 23, 2022
  2. Nov 22, 2022
  3. Nov 21, 2022
    • Eberhard Beilharz's avatar
      fix(linux): Revert "fix(linux): Fix a warning" · 812c7c33
      Eberhard Beilharz authored
      This reverts commit acab920d.
      
      I'm confused - now we're getting the same warning again - claiming
      that `size_t` is defined as `long unsigned int` and so we have to
      use `%lu`!? Is this related to the platform we're compiling on?
      This time, the warning we get is when compiling for x86_64:
      
      ```
      engine.c: In function ‘get_current_context_text’:
      engine.c:224:15: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
        224 |     g_message("%s: current context is:%u:%lu:%s:", __FUNCTION__, km_kbp_context_length(context), buf_size, current_context_utf8);
            |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            |                                                                  |
            |                                                                  size_t {aka long unsigned int}
      engine.c:224:40: note: format string is defined here
        224 |     g_message("%s: current context is:%u:%lu:%s:", __FUNCTION__, km_kbp_context_length(context), buf_size, current_context_utf8);
            |                                       ~^
            |                                        |
            |                                        unsigned int
            |                                       %lu
      
      ```
      
      Reverting the previous fix for now.
      812c7c33