On Jan 20, 2014, at 11:59 AM, Sean McBride <[email protected]> wrote:
> Hi all,
>
> With 1.0.18 coming, I though I'd try building git master with the latest
> Xcode. I see 3 warnings:
>
> (1) core.c:1910:27: Missing field 'tv_usec' initializer
>
> can we just change:
> struct timeval tv = { 0, };
> to:
> struct timeval tv = { 0, 0 };
>
> is there any platform where this struct is not 2 elements?
Nope. struct timeval is POSIX
(http://pubs.opengroup.org/onlinepubs/7999959899/basedefs/sys/time.h.html) and
always has exactly 2 members.
> (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. Shouldn't it return 'ret' not 'len'?
> The docs for 'get_config_descriptor' say 'Return 0 on success or a
> LIBUSB_ERROR code on failure.'
>
>
> (3) core.c:1163:7: Use of memory after it is freed
>
> This could be a false positive as it's from the static analyzer. It's code
> path dependant, and really you need the Xcode GUI to follow the flow.
> Nathan, could you look?
I will take a look at both 2 and 3 today.
-Nathan
signature.asc
Description: Message signed with OpenPGP using GPGMail
------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________ libusbx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libusbx-devel
