8000 OSInfo ignores deprecation warnings on macOS · Issue #3290 · mumble-voip/mumble · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
OSInfo ignores deprecation warnings on macOS #3290
Open
@mkrautz

Description

@mkrautz

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0