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:437:37: 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]
        v = grn_expr_add_var(ctx, expr, ns ? p : NULL, ns);
                                        ^~~~~~~~~~~~~
  • Loading branch information
kou committed Jun 11, 2013
1 parent 9bd54fd commit 4ab718b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expr.c
Expand Up @@ -434,7 +434,7 @@ grn_expr_unpack(grn_ctx *ctx, const uint8_t *p, const uint8_t *pe, grn_obj *expr
GRN_B_DEC(n, p);
for (i = 0; i < n; i++) {
GRN_B_DEC(ns, p);
v = grn_expr_add_var(ctx, expr, ns ? p : NULL, ns);
v = grn_expr_add_var(ctx, expr, ns ? (const char *)p : NULL, ns);
p += ns;
GRN_B_DEC(type, p);
if (GRN_TYPE <= type && type <= GRN_COLUMN_INDEX) { /* error */ }
Expand Down

0 comments on commit 4ab718b

Please sign in to comment.