From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 8DE47385800E; Wed, 2 Mar 2022 17:26:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8DE47385800E Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 222HQXRn000454 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Mar 2022 12:26:38 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 222HQXRn000454 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 59E3F1EA69; Wed, 2 Mar 2022 12:26:33 -0500 (EST) Message-ID: <181f089d-5fb8-47af-c613-be42ca98b222@polymtl.ca> Date: Wed, 2 Mar 2022 12:26:33 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: =?UTF-8?B?UmU6IC4uLy4uL2dkYnN1cHBvcnQvbmV3LW9wLmNjOjEzNzoxOiBlcnJv?= =?UTF-8?B?cjog4oCYdm9pZCBvcGVyYXRvciBkZWxldGUgW10odm9pZCosIHN0ZDo6c2l6ZV90?= =?UTF-8?Q?=29=e2=80=99_is_a_usual_=28non-placement=29_deallocation_function?= =?UTF-8?Q?_in_C++14_=28or_with_-fsized-deallocation=29_=5b-Werror=3dc++14-c?= =?UTF-8?Q?ompat=5d?= Content-Language: en-US To: Pedro Alves , Andrew Burgess , =?UTF-8?B?5ZGo5pil5piOKOaXpeaciCk=?= Cc: Gdb-patches , Dominique Quatravaux , Louis-He <1726110778@qq.com>, gdb-patches , Sam Warner References: <65ee9ce9-34db-4434-9cc6-34378f96bee9.riyue.zcm@alibaba-inc.com> <20220302163056.GC1212730@redhat.com> <18e3cba4-71ce-5b88-c760-8c8787541f35@polymtl.ca> <4010c3d0-f890-8eb4-2e08-d157aa01d8d6@palves.net> From: Simon Marchi In-Reply-To: <4010c3d0-f890-8eb4-2e08-d157aa01d8d6@palves.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 2 Mar 2022 17:26:34 +0000 X-Spam-Status: No, score=-3033.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2022 17:26:55 -0000 On 2022-03-02 12:03, Pedro Alves wrote: > How can we be sure that some C++ library linked with gdb won't call them, though? > Like e.g., libsource-highlight.so. It would seem to me that the best approach > would be to disable the warning around the declarations/definitions. For example, if GDB is built with C++11, but source-highlight is built with C++14? Simon