usb icon indicating copy to clipboard operation
usb copied to clipboard

OSX 14 - ATOMIC_VAR_INIT deprecation warning

Open elv-serban opened this issue 1 year ago • 2 comments

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

elv-serban avatar Jul 02 '23 20:07 elv-serban

Fixed in https://github.com/karalabe/usb/pull/33, probably need to tag + release v0.0.3

algorandskiy avatar Sep 28 '23 15:09 algorandskiy

I verified the fix on the main branch - works well, thank you! (and been patiently waiting for that tag :) )

elv-serban avatar Sep 28 '23 16:09 elv-serban