From nobody Sat Apr 20 11:47:09 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 15207827073321.6590406930376957; Sun, 11 Mar 2018 08:38:27 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D30C37EE9; Sun, 11 Mar 2018 15:38:24 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 60818600CC; Sun, 11 Mar 2018 15:38:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E3E1A181B9FE; Sun, 11 Mar 2018 15:38:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2BFcF64028305 for ; Sun, 11 Mar 2018 11:38:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2754260172; Sun, 11 Mar 2018 15:38:15 +0000 (UTC) Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 20669600CC for ; Sun, 11 Mar 2018 15:38:13 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 22C6D5D5F4 for ; Sun, 11 Mar 2018 15:38:12 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id t204-v6so19571645lff.9 for ; Sun, 11 Mar 2018 08:38:12 -0700 (PDT) Received: from kloomba.my.domain ([31.29.232.197]) by smtp.gmail.com with ESMTPSA id z78sm1287916lje.19.2018.03.11.08.38.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Mar 2018 08:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IKRnohGNjMLJ/FtCaKYjMBDsv5P9XyxUfetNvIMePkc=; b=NE+SJKQBfhvjYpD5lsq00AOy5/H9Tzuls7sOE4f7FaYtTI2vVVVZrekBXyVhZj7rzW l0wxXSnE9Crdv7UpMTtaiUgQVT86nCLnUiO0BQFOOxO9KJNtAFMwqHDSsMrR1EDYKWbw 1t0meeyLdE2FD++n967uoxa3scdSzjl2Mf7pRAAbkaF04M71rfInWTCtrozk+rdNeemL r1Z/O+k1uatIe1KKiqzjXK63YszgTcdmrlDnagGs10ejZOFq3Hb8TxGFDCZmH2mv38rW dff6xd2e3QLdkd7rfnUJzQMADFMqnKcXHrE6yQ8jPPif+0ii7DaeLrN3FLHO3KZhlg6M baIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IKRnohGNjMLJ/FtCaKYjMBDsv5P9XyxUfetNvIMePkc=; b=SywoYuSc3Cou9MlvJunodnWL4rrBQZ+z6rRBXEXuDp74N0NLgujvzQ5Ha5EABv/C0u YqsbOOOPszjruOx/JtckGRjOnbYySU8dEffhR0j4D6yI7HIYiNsswSWhTplruoRfkGV3 peEavwBgvPAgC6m2aZ1gHM0ES8NQh1fV6Q3LZhNhBKdq4Qnt5ybUqk9VHnH3gJEHqlmh eX5wOVoi2srOgsf0AQtAcsGHuM0VmPBYuTjf4suADVFmWEL//dO9SC4d9+/C0Jkabv9N BmH27QHVPUN5C/Z52gSg40ZIFovePIzprZWPkA1UpHiAqlJc+fpOSSvSuXPTD2TU65Pd Zo8w== X-Gm-Message-State: AElRT7Ez6sPRQJ0bpGzI8S7mZ3H+j393hWTUMo4KCgaGjFvDsjYX5G8a 7vyWkKyfB3XlKW1WcQaBWbGn7g== X-Google-Smtp-Source: AG47ELs0LNxY0FYRR2e5bBZDfaQqTnMOhPK/MO59S2/fJstNV5YdbaVOyKdYAJOIAnnGY07aLM/Gfg== X-Received: by 2002:a19:f244:: with SMTP id d4-v6mr3320055lfk.51.1520782690336; Sun, 11 Mar 2018 08:38:10 -0700 (PDT) From: Roman Bogorodskiy To: libvir-list@redhat.com Date: Sun, 11 Mar 2018 19:38:00 +0400 Message-Id: <20180311153800.37755-1-bogorodskiy@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sun, 11 Mar 2018 15:38:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sun, 11 Mar 2018 15:38:12 +0000 (UTC) for IP:'209.85.215.45' DOMAIN:'mail-lf0-f45.google.com' HELO:'mail-lf0-f45.google.com' FROM:'bogorodskiy@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.13 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.215.45 mail-lf0-f45.google.com 209.85.215.45 mail-lf0-f45.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Roman Bogorodskiy Subject: [libvirt] [PATCH] Fix build with clang 6.0.0 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sun, 11 Mar 2018 15:38:25 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Clang 6.0.0 complains when initializing structure with { NULL }: conf/domain_addr.c:1494:38: error: missing field 'type' initializer [-Werro= r,-Wmissing-field-initializers] virDomainDeviceInfo nfo =3D { NULL }; Use { 0 } instead to make it happy. --- src/conf/domain_addr.c | 2 +- tests/sysinfotest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c index 5e875a3e6..0c914fe25 100644 --- a/src/conf/domain_addr.c +++ b/src/conf/domain_addr.c @@ -1491,7 +1491,7 @@ virDomainVirtioSerialAddrAssign(virDomainDefPtr def, bool portOnly) { int ret =3D -1; - virDomainDeviceInfo nfo =3D { NULL }; + virDomainDeviceInfo nfo =3D { 0 }; virDomainDeviceInfoPtr ptr =3D allowZero ? &nfo : info; =20 ptr->type =3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL; diff --git a/tests/sysinfotest.c b/tests/sysinfotest.c index a61da017c..53d5725fd 100644 --- a/tests/sysinfotest.c +++ b/tests/sysinfotest.c @@ -91,7 +91,7 @@ sysinfotest_run(const char *test, const char *cpuinfo, const char *expected) { - struct testSysinfoData testdata =3D { NULL }; + struct testSysinfoData testdata =3D { 0 }; int ret =3D EXIT_FAILURE; =20 testdata.func =3D func; --=20 2.16.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list