On Sat, Jun 16, 2012 at 5:28 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Sat, Jun 16, 2012 at 3:22 AM, Pete Batard <p...@akeo.ie> wrote:
>> I don't think I recompiled at level 4 since last time we tried it in
>> libusb-devel, which was probably more than a year ago.
>> I have now added this item as another task for for the 1.0.13 milestone.
>>
> This is the warning log for VS11 RC after disable 4200 warning.
> http://www.microsoft.com/visualstudio/11/en-us

Since we also support WDK build, here is the PREfast Defect log.

poll_windows.c(142) : warning 28112: A variable (compat_spinlock)
which is accessed via an Interlocked function must always be accessed
via an Interlocked function. See line 126: It is not always safe to
access a variable which is accessed via the Interlocked* family of
functions in any other way.
Found in function 'init_polling'
142

poll_windows.c(240) : warning 28112: A variable (compat_spinlock)
which is accessed via an Interlocked function must always be accessed
via an Interlocked function. See line 211: It is not always safe to
access a variable which is accessed via the Interlocked* family of
functions in any other way.
Found in function 'exit_polling'
240

poll_windows.c(138) : warning 28125: The function
'InitializeCriticalSection' must be called from within a try/except
block: The requirement might be conditional.
Found in function 'init_polling'
138

core.c(1614) : warning 28193: 'dbg' holds a value that must be examined.
Found in function 'libusb_init'
Path includes 13 statements on the following lines:
1614 1615 1616 1618 1620 1624 1631 1632 1633 1634 1691 1692 1693

windows_usb.c(1195) : warning 28193: 'priv->hid' holds a value that
must be examined.
Found in function 'set_composite_interface'
Path includes 17 statements on the following lines:
1153 1154 1155 1157 1165 1166 1166 1175 1176 1181 1191 1192 1193 1194
1195 1197 1199

xusb.c(938) : warning 28719: Banned API Usage: strncpy is a Banned API
as listed in dontuse.h for security purposes.
Found in function 'main'
938




-- 
Xiaofan

------------------------------------------------------------------------------
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