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

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Aug 15 16:10:37 JST 2012


Kouhei Sutou	2012-08-15 16:10:37 +0900 (Wed, 15 Aug 2012)

  New Revision: aa5d1cfc97a3a7e955cc239be91fb8526452011e
  https://github.com/groonga/groonga/commit/aa5d1cfc97a3a7e955cc239be91fb8526452011e

  Log:
    clang: suppress a warning
    
    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];
                              ^      ~~~~~~~~~~~

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2012-08-15 15:43:03 +0900 (5b7f48b)
+++ lib/expr.c    2012-08-15 16:10:37 +0900 (d434191)
@@ -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) {
-------------- next part --------------
HTML����������������������������...
Download 



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