From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id A3D92385700D for ; Mon, 8 Aug 2022 18:14:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A3D92385700D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.93,222,1654588800"; d="scan'208";a="80950312" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 08 Aug 2022 10:14:24 -0800 IronPort-SDR: 63ZgkmHJNI9o3zNPhEwqKcWh6POs2zmEY73bTRuU3BlGyr686MTztjtgxvkGp86JtFYr8xwzbt JVIqa+pjl7py/MMpqJI+yA/s6V7Xdx0rt9w5qqcWhJCztGzbhAaZQ7sKkOdvw03FueeUC2Wwt7 x+JBKqoUYLYVyZPsKAs63KbIZHoJDgwpQnT0uMzxrGnwdSfDqIeApFGR+zNhvSn7dHlQIWF/kz V2A543kXj3cIoNpudNog40Nss4yVgD7yjtZVni5L9Vcn6u+1SKXkuKLkAeuveNTmyet2AMIspd iTc= Date: Mon, 8 Aug 2022 18:14:17 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: "Jose E. Marchesi" CC: Subject: Re: [PATCH] Add warning options -W[no-]compare-distinct-pointer-types In-Reply-To: <87mtciu23z.fsf@oracle.com> Message-ID: References: <87mtciu23z.fsf@oracle.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3112.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2022 18:14:28 -0000 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 joseph@codesourcery.com