From patchwork Wed Sep 4 17:41:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 172941 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp238240ilq; Wed, 4 Sep 2019 10:41:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7vxPYKbVj7/VgOtKJdVNXN2+0VTwfmSUkI0YRc6UOWyyfMV1KDpbQTQGspcFcWs7ryvbt X-Received: by 2002:a37:b001:: with SMTP id z1mr39706251qke.383.1567618919883; Wed, 04 Sep 2019 10:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567618919; cv=none; d=google.com; s=arc-20160816; b=oqLcCapl9+DW8+2lCtdcXP8/1A/BDLdMGSMjguu9na1XbOSbwGdVcwlLe1E+w2m4np DvSY8uLaY0M50eqtZwhm1z0FRfXtxv93pxfWjmw7j55l31FBe0ui5AVfpX75YYOa8Fgk DTDON4s5R5UmaoNp6lcoIKnsi96Cpl4edZIgbowWzPFBe0ItNCZ6sPPul5ZiLMf/XWlt VbMjkjTPufyFV6Bv4B/jiJw9u8p485EZoM1xvXfFn6AHaSHMvssItqAdQPUXlkJJUAef l2167fiSBPEkG2+4hKDNQF7WYRsbLAj6smzy5Ui+ub/wgp6gR7snlAFish8BdPYrCtJK h6hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:delivered-to; bh=YSxK63+S2mLE7s5O5kD4844lx3p+5l11hLQFB4r3qiA=; b=Zp630KBqMeKC3EtTCWJLQGCSED9p+08M4wxbQsRVZC2o4skPN2a85tp07upQfaUG2w t2iUT5FUhWbkFK+5Er1jVxSnHTNL+uyc5zlmjUkA5OD97R+Res+3sp+hnBT6ssjoRHXn 50JuYYOXqRL8SyD4AeaJVlpxYDHfx1MB9wqwyimDa+URxWLbfCpvNf5/Y27rkmRVY9Jf kshkkPMF6DAeaKgVLxAqQf/NlFxBkD2RtaC85dAezpDUFJr99/LvWTtpTgUNABfJVmDc sw+EXa7zzhOzc4OHjQJe5JZzC7qzzYyLh40i5IdOqIepfo8T49J1bPCae1w0/Vll1+S8 aYDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id v44si395591qtj.96.2019.09.04.10.41.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Sep 2019 10:41:59 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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) Delivered-To: libvirt-list@redhat.com 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: , 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 ‘libvirt_virConnectBaselineHypervisorCPU’: libvirt-override.c:9946:23: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] libvirt-override.c:9961:19: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] Use ssign_t as was similarly done in 75ec2acb6163b Signed-off-by: Cole Robinson Reviewed-by: Pavel Hrdina Reviewed-by: Ján Tomko --- 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 *self ATTRIBUTE_UNUSED, unsigned int flags; char **xmlCPUs = NULL; int ncpus = 0; - size_t i; + ssize_t i; char *cpu; PyObject *ret = NULL;