Older gcc doesn't really like complex types (buffer, struct) to be
initialized without extra {} around such type.
So pick any other 'single type' var from a struct and set it to 0,
rest will do the compiler without emitting a warning.
struct dm_task *dmt = NULL;
int r = 0;
char fake_dev_name[16];
- struct device fake_dev = { 0 };
+ struct device fake_dev = { .fd = 0 };
struct dm_str_list *alias;
if (!(mem = dm_pool_create("blocked_mirrors", 128)))
struct config_source *cs = dm_config_get_custom(cft);
struct config_file *cf;
struct stat info;
- struct device fake_dev = { 0 };
+ struct device fake_dev = { .fd = 0 };
struct dm_str_list *alias;
int fd;
int r;
struct logical_volume *lv,
uint32_t *mr)
{
- struct integrity_settings settings = { 0 };
+ struct integrity_settings settings = { .block_size = 0 };
struct logical_volume *lv_image;
struct lv_segment *seg, *seg_image;
uint32_t s;