weixin_39604557
weixin_39604557
2020-11-22 21:53

Compilation warning

When running go get I get a compilation warning as detailed below.


Justins-MacBook-Pro:repos justin$ go get -u github.com/OpenBazaar/openbazaar-go
# github.com/OpenBazaar/openbazaar-go/vendor/github.com/mutecomm/go-sqlcipher
../../go/src/github.com/OpenBazaar/openbazaar-go/vendor/github.com/mutecomm/go-sqlcipher/sqlite3.c:20897:17: warning: 'OSAtomicCompareAndSwapPtrBarrier' is deprecated: first deprecated in macOS 10.12 - Use atomic_compare_exchange_strong() from <stdatomic.h> instead [-Wdeprecated-declarations]
/usr/include/libkern/OSAtomicDeprecated.h:547:6: note: 'OSAtomicCompareAndSwapPtrBarrier' has been explicitly marked deprecated here
</stdatomic.h>

该提问来源于开源项目:OpenBazaar/openbazaar-go

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39958138 weixin_39958138 5月前

    You might want to push this issue upstream. Looks like the sqlite c binding might need to be rebased.

    点赞 评论 复制链接分享
  • weixin_39958138 weixin_39958138 5月前

    You can read about it here. Looks like a wont fix as apple isn't expected to remove that code any time soon. https://github.com/mattn/go-sqlite3/issues/332

    点赞 评论 复制链接分享
  • weixin_39611308 weixin_39611308 5月前

    looks like we already went over this lol

    点赞 评论 复制链接分享
  • weixin_39611308 weixin_39611308 5月前

    I think this only an issue with OS X 10.12 and above. My Sierra machines bombs but before that version seem fine.

    点赞 评论 复制链接分享
  • weixin_39958138 weixin_39958138 5月前

    ^ fixed

    点赞 评论 复制链接分享

相关推荐