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 6bf5612 commit 0e4bc05
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 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 @@ -5573,10 +5572,6 @@ grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value)
MERR("grn_bulk_space failed");
goto exit;
}
{
char *curr = GRN_BULK_CURR(value);
len = 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 @@ -5593,10 +5588,6 @@ grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value)
MERR("grn_bulk_space failed");
goto exit;
}
{
char *curr = GRN_BULK_CURR(value);
len = 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 @@ -5610,10 +5601,6 @@ grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value)
MERR("grn_bulk_space failed");
goto exit;
}
{
char *curr = GRN_BULK_CURR(value);
len = 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 0e4bc05

Please sign in to comment.