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 /lib/label | |
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 'lib/label')
-rw-r--r-- | lib/label/label.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index 4c243a43d..b5804c738 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -44,7 +44,7 @@ struct labeller_i { struct dm_list list; struct labeller *l; - char name[]; + char name[0]; }; static struct dm_list _labellers; |