Re: [Libusbx-devel] [libusb] Announcing libusb-1.0.20-rc1

2015-09-02 Thread Sean McBride
rc1.tar.bz2 > >Please test and let us know if you find any issues. We plan to release a >final version of 1.0.20 in the next 2-3 weeks. So it is perhaps time to release an rc2...? Cheers, -- Sean McBride, B. Eng

Re: [Libusbx-devel] [libusb] Announcing libusb-1.0.20-rc1

2015-08-06 Thread Sean McBride
ses). Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Q

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

2014-03-21 Thread Sean McBride
see if it identifies a real issue or not. Agreed, it's not at all clear to me either. The analyzer sometimes catches amazing things and sometimes is amazingly wrong. Thanks for looking into it. Cheers, -- ____ Sea

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

2014-03-21 Thread Sean McBride
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, Jus

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

2014-01-21 Thread Sean McBride
just merge my 2 character change please. :) Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Soft

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

2014-01-21 Thread Sean McBride
bx/commit/29e35526c76801479d158c484ec863615638aee8> >I will take a look at both 2 and 3 today. Thanks! -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Sof

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

2014-01-20 Thread Sean McBride
atic analyzer. It's code path dependant, and really you need the Xcode GUI to follow the flow. Nathan, could you look? Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: [Libusbx-devel] Announcing libusbx-1.0.17-rc1

2013-08-30 Thread Sean McBride
OS X 10.8.5 on Intel. I didn't try more than that though. Isn't there supposed to be an Xcode folder in there? (There isn't.) Cheers, -- ________ Sean McBride, B. Eng s...@rogue-

Re: [Libusbx-devel] Coverity: static analysis of libusbx

2013-08-26 Thread Sean McBride
econds, and am not fully convinced myself. After all, the very first thing darwin_get_cached_device() does is: ret = 0; *cached_out = NULL; If those initial conditions are not changed (in some freaky branch) then the quoted checks above are not equivalent. But I trust you know the code well! Cheers, -

Re: [Libusbx-devel] Doing a 1.0.17 release

2013-08-01 Thread Sean McBride
of the function are careful to only read idx if the return value is success, but also setting idx to -1 is much safer. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

[Libusbx-devel] doxygen issue and a few minor warning fixes

2013-07-26 Thread Sean McBride
** \ingroup poll * blah blah blah. * * \param ctx the context to operate on, or NULL for the default context * \see \ref mtasync */ void API_EXPORTED libusb_unlock_events(libusb_context *ctx) What is desired here? Only \see? Only \ref? Thanks, -- __________

Re: [Libusbx-devel] [libusb] Possible alignment issues with struct libusb_transfer buffer pointer

2013-07-02 Thread Sean McBride
On Tue, 2 Jul 2013 23:18:12 +0400, Paul Fertser said: >On Tue, Jul 02, 2013 at 02:43:54PM -0400, Sean McBride wrote: >> I don't think Paul's patch should be committed, at least not as-is. >> It adds strange double casts (with no comment) that future readers >>

Re: [Libusbx-devel] [libusb] Possible alignment issues with struct libusb_transfer buffer pointer

2013-07-02 Thread Sean McBride
((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2))) #pragma GCC diagnostic pop #endif This makes it clear a temporary hack is in place until the API can be fixed. Cheers, -- Sean McBride, B. Eng

Re: [Libusbx-devel] Core: fix compiler warning in libusb_setlocale()

2013-06-19 Thread Sean McBride
ating into master: <http://code.google.com/p/gerrit/> Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-resear

Re: [Libusbx-devel] libusb and libusbx merging

2013-06-12 Thread Sean McBride
st "[libusb]"? Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mon

Re: [Libusbx-devel] [PATCH] RFC: Add a libusb_strerror() function

2013-05-30 Thread Sean McBride
.com/libusbx/libusbx/wiki/FAQ> Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Develo

Re: [Libusbx-devel] [PATCH] RFC: Add a libusb_strerror() function

2013-05-29 Thread Sean McBride
;in NULL it queries the current settings, quoting from the manpage: My bad. Sorry for the noise. More coffee... Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-res

Re: [Libusbx-devel] [PATCH] RFC: Add a libusb_strerror() function

2013-05-29 Thread Sean McBride
sn't seem right for libusb to be changing the process' locale settings. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Devel

Re: [Libusbx-devel] Towards a 1.2.0 release, with hotplug support, please test

2013-05-27 Thread Sean McBride
ly if the code is multithreaded, which of course is even harder to test well. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Devel

Re: [Libusbx-devel] Towards a 1.2.0 release, with hotplug support, please test

2013-05-24 Thread Sean McBride
SB device is plugged in? My app only communicates with one particular USB device, and I don't much like the idea of my process running code whenever the user happens to plug in a keyboard, mouse, USB key, or other unrelated thing. Cheers, -- ____

Re: [Libusbx-devel] Towards a 1.2.0 release, with hotplug support, please test

2013-05-24 Thread Sean McBride
om/labjack/exodriver> Sounds like it may need updating for 1.2. Is this hotplug API opt-in? libusbx won't start observing the comings and goings of all USB devices by default I hope? Cheers, -- Sean McBride, B. Eng

Re: [Libusbx-devel] Towards a 1.2.0 release, with hotplug support, please test

2013-05-24 Thread Sean McBride
just pass the new io_service_t to libusbx... Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Sof

Re: [Libusbx-devel] Windows warning fixes

2013-02-18 Thread Sean McBride
jects that have static storage duration." gcc's -Wmissing-field-initializers is overly noisy; good discussion here: <http://stackoverflow.com/questions/1538943/why-is-the-compiler-throwing-this-warning-missing-initializer-isnt-the-stru> Cheers, -- _

Re: [Libusbx-devel] Compiling a Universal binary on OS X?

2012-11-13 Thread Sean McBride
ugh of course there are always bugs. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer M

Re: [Libusbx-devel] OS X development

2012-11-09 Thread Sean McBride
bx itself, you might ask here instead: <https://lists.apple.com/mailman/listinfo/usb> Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-resear

Re: [Libusbx-devel] Issues #54 & #55 have been closed - merged libusb-darwin changes

2012-11-08 Thread Sean McBride
han fix it in libusb and then we'd pull from him... vice versa works too. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: [Libusbx-devel] Issues #54 & #55 have been closed - merged libusb-darwin changes

2012-11-02 Thread Sean McBride
icket/150> Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Qu

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-11-01 Thread Sean McBride
that probably won't be true in future Xcodes. How about we add some instructions and a place to specify custom values, like this: <https://github.com/seanm/libusbx/commit/662e2e4ecb64c206ac4b5239dcf8d00959428ea1> Cheers, -- _

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-31 Thread Sean McBride
yment target, and arches. Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-31 Thread Sean McBride
's hard to diff and hard to comment, and settings need to be duplicated between targets. Ludovic, I invite you to sync with mine. Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-30 Thread Sean McBride
alue text files that Xcode projects refer to. It would mean a few extra files in git, but a good tradeoff. Any objections? Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-29 Thread Sean McBride
version that supported Mac OS X 10.5). Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-25 Thread Sean McBride
hat must be <>-style instead of ""-style? It seems to me libusb should include it's own files with "" not <>. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Resea

Re: [Libusbx-devel] -Wcast-align warnings in public libusb.h

2012-10-16 Thread Sean McBride
cast they are doing is no good. But I didn't even suggest this because it would change public API. Again, for now, I just want the public libusb.h not to cause this warning in my own code that is otherwise -Wcast-align clean. Cheers, -- ______

Re: [Libusbx-devel] -Wcast-align warnings in public libusb.h

2012-10-16 Thread Sean McBride
On Mon, 15 Oct 2012 22:58:01 -0400, Pete Batard said: >On 15 October 2012 12:15, Sean McBride wrote: >>>3) Look at how other software that uses -Wcast-align handles the same issue. >> >> I'm not exactly sure what you're asking... > >I was suggesting that

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-16 Thread Sean McBride
x27;-L/Users/xiaofanc/work/libusbx/ludovic/libusbx/libusb/.libs' He has hardcoded a path to his own disk in his Xcode project. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: [Libusbx-devel] usbutils for Mac OS X and Cygwin

2012-10-16 Thread Sean McBride
the transition, there was also 'llvm gcc' which is a hybrid with the gcc front end and llvm backend, that's the above. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-15 Thread Sean McBride
u have a better chance of seeing some huge value *before* you invoke implementation-defined behaviour of signed integer truncation. As you say, such a timeout would be so long it hardly matters. I don't much care. Cheers, -- ____

Re: [Libusbx-devel] -Wcast-align warnings in public libusb.h

2012-10-15 Thread Sean McBride
unction now, being a #define macro won't change much. >Another solution would be our unpopular friend, the anonymous union for the >transfer buffer. Aren't those new in C11? libusbx seems to be mostly C89. Even C99 usage is guarded by #ifs. Cheers, -- __

Re: [Libusbx-devel] -Wcast-align warnings in public libusb.h

2012-10-15 Thread Sean McBride
On Fri, 12 Oct 2012 23:25:14 +0100, Pete Batard said: >On 2012.10.12 22:06, Sean McBride wrote: >> 3) ??? > >3) Look at how other software that uses -Wcast-align handles the same issue. > >There's probably hardly any piece of significant C code out there that's

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-15 Thread Sean McBride
ater only when/if necessary, like so: <https://github.com/seanm/libusbx/commit/8b8545c26ba2246d4589b4115ee175d4a8ce4358> Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-12 Thread Sean McBride
r whatever version of VS/Xcode *he has*, and use that to build the libusbx library. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-12 Thread Sean McBride
ould be annoying. From my perspective as a Mac user though, neither comes by default, so it's a wash. If libusbx provided binaries, "users" could just use them, and "developers" could handle building with whatever tool. Cheers, --

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-12 Thread Sean McBride
237a20b3378b4ea1> Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada -- Don

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-12 Thread Sean McBride
h it. >Homebrew [1] is a very nice tools for installing external tools on Mac OS X. >$ brew install libtool On Mac at least, that's now 3 dependencies: - install Xcode - install homebrew - 'brew install' libtool vs - install Xcode - install CMake Cheers, -- ___

[Libusbx-devel] -Wcast-align warnings in public libusb.h

2012-10-12 Thread Sean McBride
king libusb_transfer's 'buffer' void*. This silences the warning, but doesn't really fix anything. This will also require other casts elsewhere, since pointer arithmetic on void* is also not kosher. 3) ??? Thanks, -- __

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-12 Thread Sean McBride
know what state it's in... Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Develop

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-12 Thread Sean McBride
ference? What is included with the "released" version that is not included with git, and why? >This is not the same with CMake. True. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com

[Libusbx-devel] Building git code on Mac; CMake support?

2012-10-12 Thread Sean McBride
kefiles, it seems like it would be much less maintance. Personally I much prefer CMake to autotools, but of course everything has its pros and cons. Is there something CMake doesn't support that libusbx needs? Cheers, -- _______

Re: [Libusbx-devel] libusbx v1.0.14

2012-10-12 Thread Sean McBride
t;proposed it), but I'd like to hear what others have to say. I think I'll start a new thread about that... Cheers, -- Sean McBride, B. Eng s...@rogue-research.

Re: [Libusbx-devel] list_entry() macro null deref

2012-10-02 Thread Sean McBride
mprovements, as it should help ensure they find their way into >a release. OK, I'll use that next time... it just seems like something that would take less time to fix than to create a bug report (for someone that knows the code). Cheers, -- _______

Re: [Libusbx-devel] libusbx v1.0.14

2012-10-01 Thread Sean McBride
ample: <http://open.cdash.org/index.php?project=CMake> We would contribute nightly builds on 10.5, 10.6, 10.7, 10.8, and Ubuntu 12, using different versions of gcc and clang. Cheers, -- ________ Sean McBride, B. Eng s.

[Libusbx-devel] list_entry() macro null deref

2012-09-30 Thread Sean McBride
libusbx with clang and -fcatch-undefined-behavior, I triggered this problem. Could list_entry be reworked to use offsetof instead? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: [Libusbx-devel] libusbx-1.0.13 has been released

2012-09-24 Thread Sean McBride
On Mon, 24 Sep 2012 11:47:27 -0700, Greg KH said: >No, you are forcing me to change my program to have it build with your >change, you should do it the other way around. If you want programs to >use your library, make it so that they don't have to be changed at all. > >And if I'm going to be forc

Re: [Libusbx-devel] libusbx-1.0.13-rc2 is now available

2012-09-19 Thread Sean McBride
ough. :( Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal

Re: [Libusbx-devel] libusbx v1.0.13-rc1 proposal

2012-09-17 Thread Sean McBride
le', and shouldn't be encouraged. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Soft

Re: [Libusbx-devel] Mac USB 3.0

2012-09-12 Thread Sean McBride
Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec

Re: [Libusbx-devel] libusbx v1.0.12 has been released

2012-06-28 Thread Sean McBride
? But it is indeed a harmless warning, though distracting. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Re: [Libusbx-devel] libusbx v1.0.12 has been released

2012-06-28 Thread Sean McBride
, so it doesn't make sense that it would ignore it. I think clang's error message "argument unused during compilation" is misleading us. If you build with verbose on, I think you'll find it's the linking invocation that's causing this message. Cheers, -

Re: [Libusbx-devel] Warnings from Intel Compiler

2012-06-22 Thread Sean McBride
On Fri, 22 Jun 2012 12:44:29 +0100, Pete Batard said: >On 2012.06.21 21:23, Sean McBride wrote: >> It would be nice to have nightly builds of libusbx where the resulting >errors/warnings are gathered together for display. > >I agree that it would be nice. However, > >

Re: [Libusbx-devel] Warnings from Intel Compiler

2012-06-21 Thread Sean McBride
together for display. Volunteers could set up nightly submissions with their favourite compilers & favourite warning settings. Something like this: <http://open.cdash.org/index.php?project=CMake> -- ________ Sean McBride, B.

Re: [Libusbx-devel] libusbx v1.0.12 has been released

2012-06-18 Thread Sean McBride
ores that flag when linking, I believe. Perhaps this can be fixed in libusbx's makefiles somehow... Also, does libusbx actually need GNU extensions? Does it build with -std=c99 instead? -- ________ Sean McBride, B. Eng

Re: [Libusbx-devel] [PATCH 1/2] Core: Fix Clang warnings

2012-06-14 Thread Sean McBride
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. -- _______

Re: [Libusbx-devel] libusbx v1.0.12-RC1 now available

2012-06-14 Thread Sean McBride
eral. I always found this explanation of strict aliasing to be quite useful: <http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html> Cheers, -- Sean McBride, B. Eng s...@ro

Re: [Libusbx-devel] libusbx v1.0.12-RC1 now available

2012-06-12 Thread Sean McBride
Or use CMake, which abstracts the problem. That way, the CMake folks get to worry about keeping up-to-date with VS and Xcode project formats. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: [Libusbx-devel] some minor warning fixes

2012-06-01 Thread Sean McBride
27;! :) Mac OS X 10.5 & 10.6 have autoconf 2.61. I propose that be the min requirement. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.c

Re: [Libusbx-devel] Compiling a Universal binary on OS X?

2012-05-28 Thread Sean McBride
robably explains that. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ---

Re: [Libusbx-devel] Compiling a Universal binary on OS X?

2012-05-24 Thread Sean McBride
d be much easier with CMake :) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada -

Re: [Libusbx-devel] [PATCH/RFC] logging timestamps v2

2012-05-04 Thread Sean McBride
out... - the pthread_getname_np name Mac developers may appreciate that the same identifiers be shown by libusb. See: <http://developer.apple.com/library/mac/documentation/IDEs/Conceptual/Xcode4TransitionGuide/Debugging/Debugging.html#//apple_ref/doc/uid/TP40009984-CH3-SW39> -- ___

Re: [Libusbx-devel] [PATCH/RFC] logging timestamps v2

2012-05-04 Thread Sean McBride
() for the thread it creates. It's very rare on Mac OS to drop to mach threads, I'm not sure the mach_thread_self number is particularly meaningful to anyone doing debugging. -- Sean McBride, B. Eng s...

Re: [Libusbx-devel] [PATCH/RFC] logging timestamps v2

2012-05-03 Thread Sean McBride
more portable? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Re: [Libusbx-devel] Where is the web main page source code?

2012-04-18 Thread Sean McBride
On Wed, 18 Apr 2012 16:57:19 +0300, Kustaa Nyholm said: >I'm not sure if these lengthy and wordy discussion on rather >trivial matters are all to the good in the big picture... It seems to me that if as much time was spent typing code, as typing emails on these lists, then libusb(x) would be in