mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
mroonga: remove -Wunused-but-set-variable warnings
There where unused variable. They were not conditional on defines, so removed them. Added an error handing in proc_object if there was no db as subsequent operations would have failed.
This commit is contained in:
parent
3723fd1573
commit
1f7898f686
4 changed files with 8 additions and 8 deletions
|
|
@ -69,13 +69,15 @@ command_object_remove(grn_ctx *ctx,
|
|||
grn_obj **args,
|
||||
grn_user_data *user_data)
|
||||
{
|
||||
grn_obj *db;
|
||||
grn_obj *name;
|
||||
grn_bool force;
|
||||
grn_obj *target;
|
||||
grn_bool failed_to_open;
|
||||
|
||||
db = grn_ctx_db(ctx);
|
||||
if (!grn_ctx_db(ctx)) {
|
||||
GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT, "invalid db assigned");
|
||||
return NULL;
|
||||
}
|
||||
name = grn_plugin_proc_get_var(ctx, user_data, "name", -1);
|
||||
force = grn_plugin_proc_get_var_bool(ctx, user_data, "force", -1, GRN_FALSE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue