[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [Qemu-devel] [PATCH 2/3] hw/rdma: modify struct initia
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-stable] [Qemu-devel] [PATCH 2/3] hw/rdma: modify struct initialization |
Date: |
Mon, 14 Jan 2019 12:47:38 +0100 |
On Sat, 12 Jan 2019 17:02:24 +0200
Marcel Apfelbaum <address@hidden> wrote:
> Do not initialize structs with {0} since some
> CLANG versions do not support it.
>
> Use memset instead.
Can't you use {} instead? (See, for example, commit ebf2a499a5c).
>
> Signed-off-by: Marcel Apfelbaum <address@hidden>
> ---
> contrib/rdmacm-mux/main.c | 12 +++++++++---
> hw/rdma/rdma_backend.c | 16 ++++++++++++----
> 2 files changed, 21 insertions(+), 7 deletions(-)