[Groonga-commit] groonga/groonga at 9fc39c5 [master] windows: suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 28 17:29:00 JST 2014


Kouhei Sutou	2014-10-28 17:29:00 +0900 (Tue, 28 Oct 2014)

  New Revision: 9fc39c59a00893972e9d916629cdb62434e52080
  https://github.com/groonga/groonga/commit/9fc39c59a00893972e9d916629cdb62434e52080

  Message:
    windows: suppress a warning
    
        com.c: In function 'grn_com_recv':
        com.c:861:3: warning: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'u_long' [-Wformat=]
           GRN_LOG(ctx, GRN_LOG_INFO,
           ^

  Modified files:
    lib/com.c

  Modified: lib/com.c (+1 -1)
===================================================================
--- lib/com.c    2014-10-28 17:21:33 +0900 (01c291a)
+++ lib/com.c    2014-10-28 17:29:00 +0900 (8a0b7d1)
@@ -858,7 +858,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 (%d,%x,%d,%02x,%02x,%04x)", ntohl(header->size), header->flags, header->proto, header->qtype, header->level, header->status);
+  GRN_LOG(ctx, GRN_LOG_INFO, "recv (%lu,%x,%d,%02x,%02x,%04x)", ntohl(header->size), header->flags, header->proto, header->qtype, header->level, header->status);
   {
     uint8_t proto = header->proto;
     size_t value_size = ntohl(header->size);
-------------- next part --------------
HTML����������������������������...
Download 



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