Open
Description
PR #3289 adds an ignore pragma for deprecation warnings in OSInfo.cpp.
We should revisit this in the future and refactor OSInfo approrpiately.
Some things to keep in mind:
- The deprecation ignore is for the Gestalt API, which is marked as deprecated as of macOS 10.8.
- However, a replacement API is not available until macOS 10.10.
- The replacement API is
[[NSProcessInfo processInfo] operatingSystemVersion]
. - Since the replacement API is Objective-C, we can't call it from our OSInfo.cpp file, so to avoid calling the deprecated API, we'd have to make (at least the macOS part) of OSInfo an Objective-C++ file (.mm).