1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: warns from older gcc

This commit is contained in:
Zdenek Kabelac 2016-06-27 11:13:43 +02:00
parent 3fd4584886
commit 37a33d7414
2 changed files with 2 additions and 3 deletions

View File

@ -2137,7 +2137,6 @@ struct lvmcache_info *lvmcache_add(struct labeller *labeller,
char pvid_s[ID_LEN + 1] __attribute__((aligned(8)));
char uuid[64] __attribute__((aligned(8)));
struct lvmcache_vgsummary vgsummary = { 0 };
const struct format_type *fmt = labeller->fmt;
struct lvmcache_info *info;
struct lvmcache_info *info_lookup;
struct device_list *devl;
@ -2178,7 +2177,7 @@ struct lvmcache_info *lvmcache_add(struct labeller *labeller,
if (!_found_duplicate_pvs && lvmetad_used()) {
log_warn("WARNING: Disabling lvmetad cache which does not support duplicate PVs.");
lvmetad_set_disabled(fmt->cmd, LVMETAD_DISABLE_REASON_DUPLICATES);
lvmetad_set_disabled(labeller->fmt->cmd, LVMETAD_DISABLE_REASON_DUPLICATES);
}
_found_duplicate_pvs = 1;

View File

@ -843,7 +843,7 @@ char yes_no_prompt(const char *prompt, ...)
static const char _no[] = "no";
const char *answer = NULL;
int c = silent_mode() ? EOF : 0;
int i, ret = 0, sig = 0;
int i = 0, ret = 0, sig = 0;
char buf[12];
va_list ap;