[cfe-dev] Curious ObjC typechecking... bug?

jahanian fjahanian at apple.com
Fri Apr 10 10:46:50 PDT 2015


> On Apr 10, 2015, at 9:03 AM, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
> 
> 
> 
> On 4/10/15 9:54 AM, jahanian wrote:
>> Try *-Woverriding-method-mismatch option.*
>> *
> 
> Ah, thanks.
> 
> Is there a useful pattern that's the reason why that one isn't on by default?

It is plausible that people may want to override protocol’s methods in adapting classes with
different types. But I am not sure if this is the reason or it is legacy of gcc not insisting on matching types.

- Fariborz






More information about the cfe-dev mailing list