Navigation Menu

Skip to content

Commit

Permalink
clang: suppress warnings
Browse files Browse the repository at this point in the history
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);
                                                  ^
  • Loading branch information
kou committed Jun 11, 2013
1 parent 10183b5 commit 7b686b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/output.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7b686b0

Please sign in to comment.