Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX 14 - ATOMIC_VAR_INIT deprecation warning #34

Open
elv-serban opened this issue Jul 2, 2023 · 2 comments
Open

OSX 14 - ATOMIC_VAR_INIT deprecation warning #34

elv-serban opened this issue Jul 2, 2023 · 2 comments

Comments

@elv-serban
Copy link

elv-serban commented Jul 2, 2023

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/usb@v0.0.2/libs.go:50:
.../go/pkg/mod/github.com/karalabe/usb@v0.0.2/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
@algorandskiy
Copy link

Fixed in #33, probably need to tag + release v0.0.3

@elv-serban
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants