This patch drops support for suppressing -Wunguarded-availability with redeclarations. This was behavior left over from the -Wpartial-availability days, where it was the only way of silencing the diagnostic. Now that we have @available and better support for annotating contexts with availability attributes, this behavior should be dropped.
This would emit warnings on code that used the old way of silencing the diagnostic, but this method:
- Didn't have many users; it was clunky to use
- Has a simple upgrade path that is mentioned in the diagnostics we emit
- Allows for availability violations to go undetected
@thakis: I know the chromium project uses this warning, is this OK with you?
rdar://32388777
Thanks for taking a look,
Erik