Re: [libvirt] [PATCH python] Fix comparisons between signed & unsigned integers

2017-09-26 Thread Daniel P. Berrange
On Tue, Sep 26, 2017 at 01:36:13PM +0200, Martin Kletzander wrote: > On Tue, Sep 26, 2017 at 11:16:05AM +0100, Daniel P. Berrange wrote: > > When python3 builds C modules, it adds the -Wsign-compare flag to GCC. > > This creates lots of warnings where we compare a 'size_t' value against > > an 'int

Re: [libvirt] [PATCH python] Fix comparisons between signed & unsigned integers

2017-09-26 Thread Martin Kletzander
On Tue, Sep 26, 2017 at 11:16:05AM +0100, Daniel P. Berrange wrote: When python3 builds C modules, it adds the -Wsign-compare flag to GCC. This creates lots of warnings where we compare a 'size_t' value against an 'int' value due to signed/unsigned difference. Change all the size_t types to ssiz

[libvirt] [PATCH python] Fix comparisons between signed & unsigned integers

2017-09-26 Thread Daniel P. Berrange
When python3 builds C modules, it adds the -Wsign-compare flag to GCC. This creates lots of warnings where we compare a 'size_t' value against an 'int' value due to signed/unsigned difference. Change all the size_t types to ssize_t to address this. Signed-off-by: Daniel P. Berrange --- libvirt-