2013/4/4 nico <sl1200...@gmail.com>

> Hi,
> my compiler is Clang on MacOS 10.7.5.
> I run
> ./configure  --disable-log --prefix=/opt/local
> make  CFLAGS="-arch i386 -arch x86_64 -mmacosx-version-min=10.6"
> and here's the output:
>
> Making all in libusb
>    CC     libusb_1_0_la-core.lo
> core.c:1755:30: warning: use of logical '&&' with constant operand
> [-Wconstant-logical-operand]
>                  return (usbi_backend->caps && USBI_CAP_HAS_HID_ACCESS);
>                                             ^ ~~~~~~~~~~~~~~~~~~~~~~~
> core.c:1755:30: note: use '&' for a bitwise operation
>                  return (usbi_backend->caps && USBI_CAP_HAS_HID_ACCESS);
>                                             ^~
>                                             &
> core.c:1755:30: note: remove constant to silence this warning
>                  return (usbi_backend->caps && USBI_CAP_HAS_HID_ACCESS);
> ~^~~~~~~~~~~~~~~~~~~~~~~~~~
>

It is not just a warning but a real bug.
libusb_has_capability() could _not_ work.

It is now fixed in
https://github.com/libusbx/libusbx/commit/fed4f7e47f49523c6a9469a2b25c7d995b1ebcd6

Thanks

-- 
 Dr. Ludovic Rousseau
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to