[Groonga-commit] groonga/groonga at b963095 [master] clang: suppress warnings

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 11 14:06:08 JST 2013


Kouhei Sutou	2013-06-11 14:06:08 +0900 (Tue, 11 Jun 2013)

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

  Message:
    clang: suppress warnings
    
    Use int for section ID.
    
        lib/expr.c:4056:74: 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, ec->value, 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:4068:74: 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, ec->value, 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:4089:61: 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:4094:61: 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);
                                                                            ^

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2013-06-11 13:59:09 +0900 (6eb7923)
+++ lib/expr.c    2013-06-11 14:06:08 +0900 (d2348f4)
@@ -4042,7 +4042,7 @@ scan_info_build(grn_ctx *ctx, grn_obj *expr, int *n,
       si->end = c - e->codes;
       sis[i++] = si;
       {
-        uint32_t sid;
+        int sid;
         grn_obj *index, **p = si->args, **pe = si->args + si->nargs;
         for (; p < pe; p++) {
           if ((*p)->header.type == GRN_EXPR) {
-------------- next part --------------
HTML����������������������������...
Download 



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