Page MenuHome

Remove warnings by replacing deprecated API calls
ClosedPublic

Authored by Stefan Werner (swerner) on Sep 14 2019, 9:41 AM.

Details

Summary

I don't know what the policy is with regards to deprecated calls, so I decided to send this through review rather than committing directly:
There are a number of deprecation warnings when building on macOS. This patch fixes those warnings by replacing deprecated APIs with their modern equivalents. In theory, this will leave Blender's functionality unchanged. In practice, you never know, so I'd like to have a second set of eyes on it before I commit.

The main benefit would be for developers, since it should keep things working better with future versions of the macOS SDK and the reduced number of warnings will improve the signal/noise ratio of compiler output.

macOS: Replaced deprecated OSSpinlock with os_unfair_lock.
macOS: Replaced deprecated AppKit constants with modern equivalents.

Diff Detail

Repository
rB Blender
Branch
mac_update_deprecated (branched from master)
Build Status
Buildable 4958
Build 4958: arc lint + arc unit

Event Timeline

Stefan Werner (swerner) retitled this revision from macOS: Replaced deprecated OSSpinlock with os_unfair_lock. to Remove warnings by replacing deprecated API calls.Sep 14 2019, 9:46 AM
Stefan Werner (swerner) edited the summary of this revision. (Show Details)
Stefan Werner (swerner) edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Sep 14 2019, 12:01 PM