You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Sema] Remove 'deployment target ensures guard will always be true' (#3451)
Remove the diagnostic that warns when an availability check is unnecessary
because the minimum deployment target ensures it will always be true. This
diagnostic is valuable (it tells users that they have dead fallback code) but
can also be super annoying when a source file is shared between projects with
different deployment targets. There is not currently a good mechanism to
suppress these warnings (for example, by expressing a "compatibility version" in
the source or as a build setting) and so it is better to turn the diagnostic
off.
rdar://problem/22337402
(cherry picked from commit c553de4)
if #available(iOS 9.2, watchOS 1.0,*){ // expected-warning {{unnecessary check for 'watchOS'; minimum deployment target ensures guard will always be true}}
73
+
if #available(iOS 9.2, watchOS 1.0,*){ // no-warning
0 commit comments