On Wed, 13 Jun 2012 14:03:22 +0100, Pete Batard said:

>Now, I am still getting the following warnings, that look like false 
>positives, but that I have no clue how to address yet.
>
>---------------------------------------------------------------------------
>$ scan-build make
>make  all-recursive
>make[1]: Entering directory `/d/libusbx'
>Making all in libusb
>make[2]: Entering directory `/d/libusbx/libusb'
>   CC     libusb_1_0_la-core.lo
>core.c:647:15: warning: Assigned value is garbage or undefined
>                 while ((dev = list[i++]) != NULL)
>                             ^ ~~~~~~~~~

Have you looked at the HTML that scan-build generates?  It's usually much 
easier to look at that, since it shows the flow control that gets you to the 
condition where the value is garbage.

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to