Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
    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);
                               ^
  • Loading branch information
kou committed Jun 11, 2013
1 parent 85b4356 commit 9bd54fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expr.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9bd54fd

Please sign in to comment.