Skip to content

Mac warning about OSAtomicIncrement64Barrier #22

@chrisdembia

Description

@chrisdembia

I get the following warning on macOS 10.13.3:

/Users/chris/repos/opensim-core/2/opensim-core/dependencies/BTK/Code/Common/btkO
bject.cpp:100:40: warning: 
      'OSAtomicIncrement64Barrier' is deprecated: first deprecated in macOS
      10.12 - Use std::atomic_fetch_add() from <atomic> instead
      [-Wdeprecated-declarations]    
    this->m_Timestamp = (unsigned long)OSAtomicIncrement64Barrier(&_atom...
                                       ^    
/usr/include/libkern/OSAtomicDeprecated.h:269:9: note: 
      'OSAtomicIncrement64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicIncrement64Barrier( volatile OSAtomic_int64_aligned64_t ...

Clang version:

Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions