Re: [Libusbx-devel] 3 warnings in git master from Xcode

2014-03-21 Thread Nathan Hjelm
On Mar 21, 2014, at 12:50 PM, Sean McBride wrote:On Fri, 21 Mar 2014 18:44:01 +, Nathan Hjelm said:        >I can't get scan-build to give me the the first oneIt's a compiler warning, not a static analyzer warning. I get it just building with Xcode 5.0.2. Again, I think last line of the functi

Re: [Libusbx-devel] 3 warnings in git master from Xcode

2014-03-21 Thread Sean McBride
On Fri, 21 Mar 2014 18:44:01 +, Nathan Hjelm said: >I can't get scan-build to give me the the first one It's a compiler warning, not a static analyzer warning. I get it just building with Xcode 5.0.2. Again, I think last line of the function is returning entirely the wrong thing. Shouldn

Re: [Libusbx-devel] 3 warnings in git master from Xcode

2014-03-21 Thread Nathan Hjelm
On Mar 21, 2014, at 12:44 PM, Nathan Hjelm wrote:On Mar 21, 2014, at 11:49 AM, Sean McBride wrote:On Tue, 21 Jan 2014 07:43:10 -0700, Nathan Hjelm said:        >        > (2) os/darwin_usb.c:531:10: Implicit conversion loses integer        >precision: 'size_t' (aka 'unsigned long') to 'int'      

Re: [Libusbx-devel] 3 warnings in git master from Xcode

2014-03-21 Thread Nathan Hjelm
On Mar 21, 2014, at 11:49 AM, Sean McBride wrote:On Tue, 21 Jan 2014 07:43:10 -0700, Nathan Hjelm said:        >        > (2) os/darwin_usb.c:531:10: Implicit conversion loses integer        >precision: 'size_t' (aka 'unsigned long') to 'int'        >        >        >        > A cast would silen

Re: [Libusbx-devel] 3 warnings in git master from Xcode

2014-03-21 Thread Sean McBride
On Tue, 21 Jan 2014 07:43:10 -0700, Nathan Hjelm said: >> (2) os/darwin_usb.c:531:10: Implicit conversion loses integer >precision: 'size_t' (aka 'unsigned long') to 'int' >> >> A cast would silence this, but actually I worry the last line of the >function is returning entirely the wrong thing.