diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index 93e28872a..91aa970d7 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -522,7 +522,7 @@ static struct dm_config_node *_section(struct parser *p, struct dm_config_node * { /* IDENTIFIER SECTION_B_CHAR VALUE* SECTION_E_CHAR */ - struct dm_config_node *root, *n, *l = NULL; + struct dm_config_node *root, *n; struct dm_config_value *value; char *str; diff --git a/tools/toollib.c b/tools/toollib.c index 2015ca14b..00512a3a6 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -1126,7 +1126,7 @@ struct dm_config_tree *get_cachepolicy_params(struct cmd_context *cmd) const char *str; struct arg_value_group_list *group; struct dm_config_tree *result = NULL, *prev = NULL, *current = NULL; - struct dm_config_node *cn, *last = NULL; + struct dm_config_node *cn; int ok = 0; dm_list_iterate_items(group, &cmd->arg_value_groups) {