[Groonga-commit] groonga/groonga at 9bd54fd [master] clang: suppress a warning

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Jun 11 13:41:22 JST 2013


Kouhei Sutou	2013-06-11 13:41:22 +0900 (Tue, 11 Jun 2013)

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

  Message:
    clang: suppress a warning
    
        lib/expr.c:380:28: warning: passing
              'const uint8_t *' (aka 'const unsigned char *') to parameter of type
              'const char *' converts between pointers to integer types with different
              sign [-Wpointer-sign]
          grn_bulk_write(ctx, obj, p, vs);
                                   ^

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2013-06-10 22:34:44 +0900 (614cda9)
+++ lib/expr.c    2013-06-11 13:41:22 +0900 (1d29b88)
@@ -377,7 +377,7 @@ grn_obj_unpack(grn_ctx *ctx, const uint8_t *p, const uint8_t *pe, uint8_t type,
     ERR(GRN_INVALID_FORMAT, "benced image is corrupt");
     return p;
   }
-  grn_bulk_write(ctx, obj, p, vs);
+  grn_bulk_write(ctx, obj, (const char *)p, vs);
   return p + vs;
 }
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る