Skip to content

Mac 10.13 warning: 'OSMemoryBarrier' is deprecated #534

@tofutim

Description

@tofutim

Describe the issue

When compiling for Mac, a warning....

./port/atomic_pointer.h:55:3: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use
      std::atomic_thread_fence() from <atomic> instead [-Wdeprecated-declarations]
  OSMemoryBarrier();
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libkern/OSAtomicDeprecated.h:749:9: note: 
      'OSMemoryBarrier' has been explicitly marked deprecated here
void    OSMemoryBarrier( void );

May also want to look here where they deal with it google/leveldb#422

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. autogen
  2. configure
  3. make!

Expected behavior

No warnings...

Actual behavior

Warnings

Machine specs:

  • OS: OSX 10.13

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions