cmake-js / boost-lib

Boost dependency manager for CMake.js based native modules
https://www.npmjs.com/package/boost-lib
MIT License
13 stars 8 forks source link

Deprecation warning when building on recent OSX #10

Closed 0181532686cf4a31163be0bf3e6bb6732bf closed 8 years ago

0181532686cf4a31163be0bf3e6bb6732bf commented 8 years ago

When using the lib with recent XCode, I'm getting a bunch of deprecation warnings like this one:

In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/ip/tcp.hpp:19:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/basic_socket_acceptor.hpp:19:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/basic_io_object.hpp:19:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/io_service.hpp:767:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/impl/io_service.hpp:71:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/detail/task_io_service.hpp:196:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/detail/impl/task_io_service.hpp:19:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/detail/completion_handler.hpp:20:
In file included from /Users/administrator/.cmake-js/boost/1.61.0/boost/asio/detail/fenced_block.hpp:24:
/Users/administrator/.cmake-js/boost/1.61.0/boost/asio/detail/macos_fenced_block.hpp:45:5: 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.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:749:9: note: 
      'OSMemoryBarrier' has been explicitly marked deprecated here
void    OSMemoryBarrier( void );
        ^