From nobody Sun Feb 8 14:12:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1575906292; cv=none; d=zohomail.com; s=zohoarc; b=QLyun0SY6ry3uIREoGM6/9xW6ldnaQRq0GGcpBORBNTl3xIvsStfkd/1tJGeTF4jAw8JGWjaV2pc1Icvb6V2xPY0IGMCcGxQsdI0WCLqcLQsrtRobdvoxmBojbVgXghZXWx8w3yI4gSwJPQAfBTQP6ERq2KmCw90kgR+79KRWFU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575906292; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DqCoqcZg4uxf2MKSI8IU80erWfjjbYYyL5YTeGdL5Ss=; b=EmD4Vs8vTUgrwfGI4g80A5261zIzIzYMp9Ycyip6xI5+Yep7YCB4xOYOHC/hSdNWw+jmlIe9uhTnZMDyeqWkj8mSn0+AeKo9qk8TGrEkbVnQn9f/R7Xqf0SerBvcM0l6vUDADdkc+j9OEm3+U892MAGDBcQHTT5lCItPoH84hYY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1575906292667723.762822588698; Mon, 9 Dec 2019 07:44:52 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-323-kJq03QLqNDSpNIBSQo26bg-1; Mon, 09 Dec 2019 10:44:49 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D80C58C4765; Mon, 9 Dec 2019 15:44:42 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B3DE55E240; Mon, 9 Dec 2019 15:44:42 +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 4D99C8354F; Mon, 9 Dec 2019 15:44:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xB9Fiejv005706 for ; Mon, 9 Dec 2019 10:44:40 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3A6A36BF9B; Mon, 9 Dec 2019 15:44:40 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-42.ams2.redhat.com [10.36.112.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id A3E30A4B8F for ; Mon, 9 Dec 2019 15:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575906291; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=DqCoqcZg4uxf2MKSI8IU80erWfjjbYYyL5YTeGdL5Ss=; b=AaV43poDkjZej6wpVQca7Tvbeup1WYJAcYYK+4LIGca6tD5AykqqEf8/MTO9Tqhi+cgcPN FmMJrr5veMKZNlX0sFkK61DUKSUApb8uBwPm4ziMPd1YejnpFzWf6c584r6I3YjvgH707u ouRQPvqNZgnq5wamfPYmLIy93cHoWp8= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Mon, 9 Dec 2019 15:44:31 +0000 Message-Id: <20191209154435.278418-1-berrange@redhat.com> In-Reply-To: <20191209145132.153338-1-berrange@redhat.com> References: <20191209145132.153338-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/5] tests: fix warning with old GCC about missing struct initializer 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: kJq03QLqNDSpNIBSQo26bg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Old GCC isn't happy about the {0} initializer because the first field in the struct is itself a struct. ../../tests/openvzutilstest.c: In function 'testReadNetworkConf': ../../tests/openvzutilstest.c:101:12: error: missing braces around initiali= zer [-Werror=3Dmissing-braces] struct openvz_driver driver =3D {0}; ^ This fixes commit 4a4132b4625778cf80acb9c92d06351b44468ac3 Signed-off-by: Daniel Berrange --- tests/openvzutilstest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/openvzutilstest.c b/tests/openvzutilstest.c index c395b9dc19..2b1a9fb5ce 100644 --- a/tests/openvzutilstest.c +++ b/tests/openvzutilstest.c @@ -98,10 +98,10 @@ testReadNetworkConf(const void *data G_GNUC_UNUSED) " \n" " \n" "\n"; - struct openvz_driver driver =3D {0}; - - driver.xmlopt =3D openvzXMLOption(&driver); - driver.caps =3D openvzCapsInit(); + struct openvz_driver driver =3D { + .xmlopt =3D openvzXMLOption(&driver), + .caps =3D openvzCapsInit(), + }; =20 if (!(def =3D virDomainDefNew())) goto cleanup; --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list