diff options
author | Zhao Heming <heming.zhao@suse.com> | 2020-08-21 00:05:04 +0800 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2020-09-01 17:57:50 +0200 |
commit | cc2218b4014015bd2633454e683293851183e08c (patch) | |
tree | 2c36c96804699d4965b8f78e32cfb39467b68b27 /libdm | |
parent | 0f377a04e5563166e4b865e92bc36d088107561a (diff) | |
download | lvm2-cc2218b4014015bd2633454e683293851183e08c.tar.gz |
gcc: change zero-sized array to fexlible array
this patch makes gcc happy with compiling option: [-Wstringop-overflow=]
Signed-off-by: Zhao Heming <heming.zhao@suse.com>
Diffstat (limited to 'libdm')
-rw-r--r-- | libdm/libdm-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 466c74bb9..a28829765 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -1443,7 +1443,7 @@ struct node_op_parms { char *old_name; int warn_if_udev_failed; unsigned rely_on_udev; - char names[0]; + char names[]; }; static void _store_str(char **pos, char **ptr, const char *str) |