I have a warning that I want to suppress in Xcode, but I cannot find the name of the warning. I have included -fdiagnostics-show-category=name , and the logs show that this is a semantic problem. Looking at the source of Clang, I think I found a test for this scenario , but does not seem to be tracking its name.
Currently, build logs show this:
m:89:29: warning: assigning to 'id<AProtocol>' from incompatible type 'AViewController *' [Semantic Issue] self.tableView.delegate = self.aController;
The identifier for the warning is also 2 - but no matter what I try, I cannot get this to go away:
#pragma clang diagnostic push #pragma clang diagnostic ignored "-WNO-CLUE-WHAT-THE-WARNING-FLAG-IS" self.tableView.delegate = self.aController; #pragma clang diagnostic pop
Of course, I know that always fixing the warning is preferable, and I can do this using the protocol. But at the moment, I so much looked for a warning, itβs just a feeling of unfinished business, and I would like to know the answer. I also searched "freakingclangwarnings.com" and it is not there as far as I can tell.
source share