Descriptionmac: Suppress a clang warning in CustomFrameView.
Clang's static analyzer emits the warning "-Wobjc-designated-initializers" for
CustomFrameView, because CustomFrameView overrides two designated initializers,
but the methods don't call super. The methods throw exceptions, which Clang's
static analyzer isn't smart enough to catch. Declaring the methods with
NS_UNAVAILABLE suppresses the clang warning.
BUG=
Committed: https://crrev.com/8f7b9f93a037437f09cc3d95aa73a6a8346df0af
Cr-Commit-Position: refs/heads/master@{#329971}
Patch Set 1 #Patch Set 2 : Switch to UNAVAILABLE_ATTRIBUTE. #Messages
Total messages: 14 (5 generated)
|