Xcode compilation warnings - trefcounter.h - macOS 10.12+

Yannis Calotychos ycalot at gmail.com
Thu Apr 21 12:11:02 BST 2022


I wonder if the 2 warnings below in file trefcounter.h may be addressed in the next release:


[1]
    void ref() { OSAtomicIncrement32Barrier(const_cast<int32_t*>(&refCount)); }
    bool deref() { return ! OSAtomicDecrement32Barrier(const_cast<int32_t*>(&refCount)); }

issue 'OSAtomicDecrement32Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_sub() from <atomic> instead


[2] 
#  define OSATOMIC_DEPRECATED 0

issue : OSATOMIC_DEPRECATED' macro redefined

I believe OSATOMIC_DEPRECATED is defined somewhere as being 1.


Thank you
Yannis Calotychos


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20220421/2268f43b/attachment.htm>


More information about the taglib-devel mailing list