usb
usb copied to clipboard
OSX 14 - ATOMIC_VAR_INIT deprecation warning
Starting with OSX 14 using xcode 14.0, the ATOMIC_VAR_INT macro definition has been marked deprecated and compilation always prints the warning below:
In file included from .../go/pkg/mod/github.com/karalabe/[email protected]/libs.go:50:
.../go/pkg/mod/github.com/karalabe/[email protected]/libusb/libusb/os/darwin_usb.c:53:29: warning: macro 'ATOMIC_VAR_INIT' has been marked as deprecated [-Wdeprecated-pragma]
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdatomic.h:51:41: note: macro marked 'deprecated' here
Fixed in https://github.com/karalabe/usb/pull/33, probably need to tag + release v0.0.3
I verified the fix on the main branch - works well, thank you! (and been patiently waiting for that tag :) )