[Groonga-commit] groonga/groonga at 795658b [master] Suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 30 17:57:25 JST 2014


Kouhei Sutou	2014-10-30 17:57:25 +0900 (Thu, 30 Oct 2014)

  New Revision: 795658baf55f866c8d0ca96f3428e61d35168888
  https://github.com/groonga/groonga/commit/795658baf55f866c8d0ca96f3428e61d35168888

  Message:
    Suppress a warning
    
        com.c: In function 'grn_com_recv':
        com.c:861:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'uint32_t' [-Wformat=]
           GRN_LOG(ctx, GRN_LOG_INFO,
           ^
    
    Is it OK to use "%u" for uint32_t?

  Modified files:
    lib/com.c

  Modified: lib/com.c (+1 -1)
===================================================================
--- lib/com.c    2014-10-29 21:51:07 +0900 (e291ba7)
+++ lib/com.c    2014-10-30 17:57:25 +0900 (5e20c27)
@@ -859,7 +859,7 @@ grn_com_recv(grn_ctx *ctx, grn_com *com, grn_com_header *header, grn_obj *buf)
     }
   } while (rest);
   GRN_LOG(ctx, GRN_LOG_INFO,
-          "recv (%lu,%x,%d,%02x,%02x,%04x)",
+          "recv (%u,%x,%d,%02x,%02x,%04x)",
           ntohl(header->size),
           header->flags,
           header->proto,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index