Commits

Devin Coughlin committed c459f34029c
[libdispatch] Fix deprecation annotations for macOS, watchOS. Several libdispatch APIs in Queue.swift are annotated as: public enum GlobalQueuePriority { @available(OSX, deprecated: 10.10, message: "Use qos attributes instead") @available(*, deprecated: 8.0, message: "Use qos attributes instead") case high This annotation means ".high is deprecated on all OSes in version 8.0 and above", so the compiler had false positive deprecation warnings on macOS when the minimum deployment target is 10.9 and false negatives on watchOS when the deployment target is 2.0. The fix is to explicitly enumerate the platforms the API is deprecated on. This is not ideal (see SR-2155) but avoids the false positives and negatives. This fixes https://bugs.swift.org/browse/SR-2153