Navigation Menu

Skip to content

Commit

Permalink
gcc: suppress a warning
Browse files Browse the repository at this point in the history
Remove an unused variable.

    db.c: In function 'grn_obj_get_value':
    db.c:5535:16: warning: variable 'len' set but not used [-Wunused-but-set-variable]
  • Loading branch information
kou committed Jun 14, 2013
1 parent 228907c commit d9e10ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/db.c
Expand Up @@ -5532,7 +5532,6 @@ grn_obj_get_value_(grn_ctx *ctx, grn_obj *obj, grn_id id, uint32_t *size)
grn_obj *
grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value)
{
unsigned int len = 0;
GRN_API_ENTER;
if (!id) { goto exit; }
if (!obj) {
Expand Down Expand Up @@ -5575,7 +5574,7 @@ grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value)
}
{
char *curr = GRN_BULK_CURR(value);
len = grn_pat_get_value(ctx, pat, id, curr - size);
grn_pat_get_value(ctx, pat, id, curr - size);
}
value->header.type = GRN_BULK;
value->header.domain = grn_obj_get_range(ctx, obj);
Expand All @@ -5595,7 +5594,7 @@ grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value)
}
{
char *curr = GRN_BULK_CURR(value);
len = grn_hash_get_value(ctx, hash, id, curr - size);
grn_hash_get_value(ctx, hash, id, curr - size);
}
value->header.type = GRN_BULK;
value->header.domain = grn_obj_get_range(ctx, obj);
Expand All @@ -5612,7 +5611,7 @@ grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value)
}
{
char *curr = GRN_BULK_CURR(value);
len = grn_array_get_value(ctx, array, id, curr - size);
grn_array_get_value(ctx, array, id, curr - size);
}
value->header.type = GRN_BULK;
value->header.domain = grn_obj_get_range(ctx, obj);
Expand Down

0 comments on commit d9e10ce

Please sign in to comment.