Navigation Menu

Skip to content

Commit

Permalink
clang: suppress warnings
Browse files Browse the repository at this point in the history
    lib/expr.c:4178:63: warning: passing 'uint32_t *'
          (aka 'unsigned int *') to parameter of type 'int *' converts between
          pointers to integer types with different sign [-Wpointer-sign]
                  if (grn_column_index(ctx, *p, c->op, &index, 1, &sid)) {
                                                                  ^~~~
    include/groonga.h:1854:69: note: passing argument
          to parameter 'section' here
                                 grn_obj **indexbuf, int buf_size, int *section);
                                                                        ^
    lib/expr.c:4183:63: warning: passing 'uint32_t *'
          (aka 'unsigned int *') to parameter of type 'int *' converts between
          pointers to integer types with different sign [-Wpointer-sign]
                  if (grn_column_index(ctx, *p, c->op, &index, 1, &sid)) {
                                                                  ^~~~
    include/groonga.h:1854:69: note: passing argument
          to parameter 'section' here
                                 grn_obj **indexbuf, int buf_size, int *section);
                                                                        ^
  • Loading branch information
kou committed Jun 11, 2013
1 parent b963095 commit 7e9fa93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expr.c
Expand Up @@ -4171,7 +4171,7 @@ scan_info_build(grn_ctx *ctx, grn_obj *expr, int *n,
sis[i++] = si;
/* better index resolving framework for functions should be implemented */
{
uint32_t sid;
int sid;
grn_obj *index, **p = si->args, **pe = si->args + si->nargs;
for (; p < pe; p++) {
if (GRN_DB_OBJP(*p)) {
Expand Down

0 comments on commit 7e9fa93

Please sign in to comment.