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

Mac warning about OSAtomicIncrement64Barrier #22

Open
chrisdembia opened this issue Jan 30, 2018 · 1 comment
Open

Mac warning about OSAtomicIncrement64Barrier #22

chrisdembia opened this issue Jan 30, 2018 · 1 comment

Comments

@chrisdembia
Copy link

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
@curcify
Copy link

curcify commented Mar 9, 2020

Can you it work on Macos 10.15?

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