Skip to content

OSX 14 - ATOMIC_VAR_INIT deprecation warning #34

@elv-serban

Description

@elv-serban

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions