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

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 11 15:07:56 JST 2013


Kouhei Sutou	2013-06-11 15:07:56 +0900 (Tue, 11 Jun 2013)

  New Revision: 7b686b0cd3bbbc177719389c7b15866afd0d8c6d
  https://github.com/groonga/groonga/commit/7b686b0cd3bbbc177719389c7b15866afd0d8c6d

  Message:
    clang: suppress warnings
    
    Use uint32_t for value size.
    
        lib/output.c:526:90: warning: passing 'int *' to
              parameter of type 'uint32_t *' (aka 'unsigned int *') converts between
              pointers to integer types with different sign [-Wpointer-sign]
          ...*ri = (grn_rset_recinfo *)grn_obj_get_value_(ctx, a->obj, id, &vs);
                                                                           ^~~
        lib/db.h:232:89: note: passing argument to
              parameter 'size' here
          ...*ctx, grn_obj *obj, grn_id id, uint32_t *size);
                                                      ^
        lib/output.c:533:90: warning: passing 'int *' to
              parameter of type 'uint32_t *' (aka 'unsigned int *') converts between
              pointers to integer types with different sign [-Wpointer-sign]
          ...*ri = (grn_rset_recinfo *)grn_obj_get_value_(ctx, a->obj, id, &vs);
                                                                           ^~~
        lib/db.h:232:89: note: passing argument to
              parameter 'size' here
          ...*ctx, grn_obj *obj, grn_id id, uint32_t *size);
                                                      ^

  Modified files:
    lib/output.c

  Modified: lib/output.c (+1 -1)
===================================================================
--- lib/output.c    2013-06-11 15:03:04 +0900 (5b92457)
+++ lib/output.c    2013-06-11 15:07:56 +0900 (0551ea5)
@@ -499,7 +499,7 @@ static void
 grn_text_atoj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
               grn_obj *obj, grn_id id)
 {
-  int vs;
+  uint32_t vs;
   grn_obj buf;
   if (obj->header.type == GRN_ACCESSOR) {
     grn_accessor *a = (grn_accessor *)obj;
-------------- next part --------------
HTML����������������������������...
Download 



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