How to find Clang warning flag in Xcode that is missing from build logs

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.

+7
source share
1 answer

Searching for the source code, I would suggest that it warn_incompatible_qualified_id , defined in DiagnosticSemaKinds.td , which is one of those existing warnings that are not currently associated - W flag Perhaps there is more information in the change log since it was added.

+3
source

All Articles