linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "heming.zhao@suse.com" <heming.zhao@suse.com>
To: linux-lvm@redhat.com
Cc: mcsontos@redhat.com
Subject: Re: [linux-lvm] [PATCH] gcc: change zero-sized array to fexlible array
Date: Wed, 26 Aug 2020 13:18:54 +0800	[thread overview]
Message-ID: <ff41471a-d775-a314-434a-eac3fd0668a4@suse.com> (raw)
In-Reply-To: <1597939504-31532-1-git-send-email-heming.zhao@suse.com>

ping.

@Marian & other maintainers


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@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
> @@ -1445,7 +1445,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)
> diff --git a/lib/activate/fs.c b/lib/activate/fs.c
> index b2c99fc..96f7df6 100644
> --- a/lib/activate/fs.c
> +++ b/lib/activate/fs.c
> @@ -313,7 +313,7 @@ struct fs_op_parms {
>   	char *lv_name;
>   	char *dev;
>   	char *old_lv_name;
> -	char names[0];
> +	char names[];
>   };
>   
>   static void _store_str(char **pos, char **ptr, const char *str)
> diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c
> index d75c704..d587c32 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)
> 

  parent reply	other threads:[~2020-08-26  5:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-20 16:05 Zhao Heming
2020-08-20 16:08 ` heming.zhao
2020-08-26  5:18 ` heming.zhao [this message]
2020-08-28 19:32   ` Zdenek Kabelac
2020-08-29  3:11     ` heming.zhao
2020-09-02 15:22       ` Zdenek Kabelac
2020-09-03 14:58         ` heming.zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ff41471a-d775-a314-434a-eac3fd0668a4@suse.com \
    --to=heming.zhao@suse.com \
    --cc=linux-lvm@redhat.com \
    --cc=mcsontos@redhat.com \
    --subject='Re: [linux-lvm] [PATCH] gcc: change zero-sized array to fexlible array' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).