On Fri, 5 Aug 2022, Jose E. Marchesi via Gcc-patches wrote: > +Wcompare-distinct-pointer-types > +C C++ Var(warn_compare_distinct_pointer_types) Warning Init(1) > +Warn if pointers of distinct types are compared without a cast.
There's no implementation for C++ in this patch, so the option shouldn't be supported for C++ in c.opt. However, C options are normally supported for Objective-C; unless you have a specific reason why Objective-C support for this option would be a bad idea, "C ObjC" would be appropriate for the languages. -- Joseph S. Myers jos...@codesourcery.com