Sahil Kang created AVRO-3959: -------------------------------- Summary: Avoid deprecated OSX atomic ops Key: AVRO-3959 URL: https://issues.apache.org/jira/browse/AVRO-3959 Project: Apache Avro Issue Type: Improvement Components: c Reporter: Sahil Kang
maOS 10.12 deprecated the {{OSAtomicIncrement32}} and {{OSAtomicDecrement32}} functions used in [avro/lang/c/src/avro/refcount.h|https://github.com/apache/avro/blob/9c7e14d89f80f7bea9c4d67d3ae98b86b5cff166/lang/c/src/avro/refcount.h#L99-L114] which results in the following warnings: {quote}warning: 'OSAtomicIncrement32' is deprecated: first deprecated in macOS 10.12 warning: 'OSAtomicDecrement32' is deprecated: first deprecated in macOS 10.12 {quote} To remove these warnings while maintaining the exising {{avro_refcount_*}} signatures, we can rely on the subsequent GCC/Clang intrinsics branch -- This message was sent by Atlassian Jira (v8.20.10#820010)