Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
expr.c:4269:27: warning: incompatible pointer types initializing 'grn_proc *'
      (aka 'struct _grn_proc *') with an expression of type 'grn_obj *'
      (aka 'struct _grn_obj *') [-Wincompatible-pointer-types]
                grn_proc *proc = si->args[0];
                          ^      ~~~~~~~~~~~
  • Loading branch information
kou committed Aug 15, 2012
1 parent 8162109 commit aa5d1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expr.c
Expand Up @@ -4266,7 +4266,7 @@ grn_table_select(grn_ctx *ctx, grn_obj *table, grn_obj *expr,
if (si->flags & SCAN_ACCESSOR) {
} else if (selector_proc_p(si->args[0])) {
grn_rc rc;
grn_proc *proc = si->args[0];
grn_proc *proc = (grn_obj *)(si->args[0]);
rc = proc->selector(ctx, index, si->nargs, si->args,
res, si->logical_op);
if (rc) {
Expand Down

0 comments on commit aa5d1cf

Please sign in to comment.