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

cleanup: make gcc happier with initializers

Whole struct will be set to 0, just
if the first member is array, gcc gives warning
we should initialized this element as array,
so pick any later simple type.
This commit is contained in:
Zdenek Kabelac 2013-11-22 20:42:03 +01:00
parent 6ebbf19828
commit 62db5c1e48

View File

@ -141,8 +141,8 @@ static int _pvs_single(struct cmd_context *cmd, struct volume_group *vg,
struct volume_group *old_vg = vg;
char uuid[64] __attribute__((aligned(8)));
struct label *label;
struct label _dummy_label = { 0 };
struct device _dummy_device = { 0 };
struct label _dummy_label = { .dev = 0 };
struct device _dummy_device = { .dev = 0 };
if (is_pv(pv) && !is_orphan(pv) && !vg) {
vg_name = pv_vg_name(pv);