From nobody Sat Apr 20 10:02:11 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; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1567618919; cv=none; d=zoho.com; s=zohoarc; b=IDeQ0VdeSrBZfN0419DSm5fYJ47AT9B8UqikYAEgtRvzdeiWG8rZE0tjVZyFpXg3uZ+Z7xVmNeCUl8JM1K03sDhY+jCk+Iojq9nfzeEbLR2109ukVzGVpgm/w8xf9J8kkZIcKY53rRU1znlfKyZQ63F9UGa7vsm/xOr1lLv6Ans= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567618919; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=YSxK63+S2mLE7s5O5kD4844lx3p+5l11hLQFB4r3qiA=; b=LSr1+zYICVCfmxaIkDqrKHyB6vk72C/MiZ6T8nwopSZLGHE30SetgXNbr4ffp7bM1E+O6OB6cqTkxWDWOuxcY+M4ZT+VCb05Hp3MK6XQ3oDu1U2rhHa5T9SjTGmHX2pHtDivN7DDfr/KDVBWQ3G1MmXdVANTeIhPaVf36DZUXTE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1567618919885512.729096897924; Wed, 4 Sep 2019 10:41:59 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 91C4A307D970; Wed, 4 Sep 2019 17:41:58 +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 4214F5D704; Wed, 4 Sep 2019 17:41:58 +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 CFB91180B536; Wed, 4 Sep 2019 17:41:57 +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 x84HfuX2000885 for ; Wed, 4 Sep 2019 13:41:56 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6347260610; Wed, 4 Sep 2019 17:41:56 +0000 (UTC) Received: from worklaptop.redhat.com (ovpn-124-171.rdu2.redhat.com [10.10.124.171]) by smtp.corp.redhat.com (Postfix) with ESMTP id E152E6060D; Wed, 4 Sep 2019 17:41:52 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 4 Sep 2019 13:41:56 -0400 Message-Id: <1f695df8e28eff5eb03a222fcf2e2d791e4370ef.1567618886.git.crobinso@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 python] Fix -Wsign-compare warnings 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: , Content-Type: text/plain; charset="utf-8" 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 04 Sep 2019 17:41:59 +0000 (UTC) libvirt-override.c: In function =E2=80=98libvirt_virConnectBaselineHypervis= orCPU=E2=80=99: libvirt-override.c:9946:23: warning: comparison of integer expressions of d= ifferent signedness: =E2=80=98size_t=E2=80=99 {aka =E2=80=98long unsigned i= nt=E2=80=99} and =E2=80=98int=E2=80=99 [-Wsign-compare] libvirt-override.c:9961:19: warning: comparison of integer expressions of d= ifferent signedness: =E2=80=98size_t=E2=80=99 {aka =E2=80=98long unsigned i= nt=E2=80=99} and =E2=80=98int=E2=80=99 [-Wsign-compare] Use ssign_t as was similarly done in 75ec2acb6163b Signed-off-by: Cole Robinson Reviewed-by: J=C3=A1n Tomko Reviewed-by: Pavel Hrdina --- libvirt-override.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt-override.c b/libvirt-override.c index 5567f4a..ff2cfdf 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -9927,7 +9927,7 @@ libvirt_virConnectBaselineHypervisorCPU(PyObject *sel= f ATTRIBUTE_UNUSED, unsigned int flags; char **xmlCPUs =3D NULL; int ncpus =3D 0; - size_t i; + ssize_t i; char *cpu; PyObject *ret =3D NULL; =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list