[linux-lvm] [PATCH] gcc: change zero-sized array to fexlible array
heming.zhao at suse.com
heming.zhao at suse.com
Thu Aug 20 16:08:01 UTC 2020
more info or discussion with this patch.
I met this compiling issue when I was creating openSUSE package.
I'm a little confused & wonder why Fedora can pass this gcc warning.
On 8/21/20 12:05 AM, Zhao Heming wrote:
> this patch makes gcc happy with compiling option: [-Wstringop-overflow=]
>
> Signed-off-by: Zhao Heming <heming.zhao at suse.com>
> ---
> device_mapper/libdm-common.c | 2 +-
> lib/activate/fs.c | 2 +-
> libdm/libdm-common.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/device_mapper/libdm-common.c b/device_mapper/libdm-common.c
> index bc691d6..3627457 100644
> --- a/device_mapper/libdm-common.c
> +++ b/device_mapper/libdm-common.c
More information about the linux-lvm
mailing list