diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-22 17:05:09 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-22 17:18:50 +0200 |
commit | 9eafd44734d32207dce7d0b0829e3c94c07d95c9 (patch) | |
tree | f40d8d3b187ea68b5898f87fc04bade87a771d5b /device_mapper/misc | |
parent | 4515acf73430a8734f477b10ae6e3473d02999ae (diff) | |
download | lvm2-9eafd44734d32207dce7d0b0829e3c94c07d95c9.tar.gz |
gcc: use more zero length arrays
Define last array struct member with zero size.
Diffstat (limited to 'device_mapper/misc')
-rw-r--r-- | device_mapper/misc/dm-ioctl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/device_mapper/misc/dm-ioctl.h b/device_mapper/misc/dm-ioctl.h index 49954a764..cc2374c36 100644 --- a/device_mapper/misc/dm-ioctl.h +++ b/device_mapper/misc/dm-ioctl.h @@ -183,7 +183,7 @@ struct dm_target_spec { struct dm_target_deps { uint32_t count; /* Array size */ uint32_t padding; /* unused */ - uint64_t dev[]; /* out */ + uint64_t dev[0]; /* out */ }; /* @@ -193,7 +193,7 @@ struct dm_name_list { uint64_t dev; uint32_t next; /* offset to the next record from the _start_ of this */ - char name[]; + char name[0]; }; /* @@ -203,7 +203,7 @@ struct dm_target_versions { uint32_t next; uint32_t version[3]; - char name[]; + char name[0]; }; /* @@ -212,7 +212,7 @@ struct dm_target_versions { struct dm_target_msg { uint64_t sector; /* Device sector */ - char message[]; + char message[0]; }; /* |