[libvirt] [PATCH python] Fix -Wsign-compare warnings

Pavel Hrdina phrdina at redhat.com
Thu Sep 5 07:49:08 UTC 2019


On Wed, Sep 04, 2019 at 01:41:56PM -0400, Cole Robinson wrote:
> 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 <crobinso at redhat.com>
> ---
>  libvirt-override.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190905/a09f9ca7/attachment-0001.sig>


More information about the libvir-list mailing list