From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert <eggert@cs.ucla.edu> Newsgroups: gmane.emacs.devel Subject: Re: pdumper on Solaris 10 Date: Tue, 17 Dec 2024 13:14:34 -0800 Organization: UCLA Computer Science Department Message-ID: <d0233695-8cd2-4fe8-9a5d-fb66d6066d16@cs.ucla.edu> References: <mailman.39.1723910423.12184.emacs-devel@gnu.org> <8634iwex8q.fsf@gnu.org> <CADwFkmny8-5q48b6O=9bYSgkQc1f2J2vLOAxseLLW2Y5CRLCzQ@mail.gmail.com> <86wmg7bso1.fsf@gnu.org> <eOZG3TF9G5adxRosYbOzoDzRnVKc-m-EqJQg7OUid7FCAcUbrhDleevYvMQe-TodgcZQ7rVa_iURKpPd2lUAhL32XXig2OapB6OvP7I6izU=@protonmail.com> <865xnrbh3r.fsf@gnu.org> <m2msh3s9dz.fsf@gmail.com> <87bjxil35f.fsf@protonmail.com> <86seqqtjzb.fsf@gnu.org> <87o71ddxmf.fsf@protonmail.com> <86a5cxryfp.fsf@gnu.org> <89cba675-90e6-49d1-b774-f0498de6ac19@cs.ucla.edu> <86pllqm5a5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5063"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: pipcet@protonmail.com, gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii <eliz@gnu.org> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 17 22:15:34 2024 Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org> Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>) id 1tNeuk-0001A0-3g for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Dec 2024 22:15:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <emacs-devel-bounces@gnu.org>) id 1tNetv-0006cQ-M5; Tue, 17 Dec 2024 16:14:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@cs.ucla.edu>) id 1tNetr-0006c1-S2 for emacs-devel@gnu.org; Tue, 17 Dec 2024 16:14:40 -0500 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@cs.ucla.edu>) id 1tNetq-0001aW-4c; Tue, 17 Dec 2024 16:14:39 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 73F453C00FB31; Tue, 17 Dec 2024 13:14:35 -0800 (PST) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id OiS4_v0sXNAH; Tue, 17 Dec 2024 13:14:35 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id EAAF63C00FAAA; Tue, 17 Dec 2024 13:14:34 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu EAAF63C00FAAA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1734470075; bh=7Pd9EHWQFg9dMZ4rWk0ubEhgkLdbxHTLHXXPaFguSHc=; h=Message-ID:Date:MIME-Version:To:From; b=O9SixVayHyeS09vJkFkm1BN8O42lv5FgfVbR9awJK3FgognXe+tsKDXnW16rlIJCJ zpIYElciTGoHH76O9bIcKtl2PdSa5tl+xXMdUBKGBGkn6rkZ1/9OSU63/p2EJgogFm EENOP73U+TaCtQMFDvJN/Zhpcb+ls/O0COKIV9tFj1nlhjXagKfPQQanjMhs3q2tgw hgLWmdmZoRwsk6fuCRK7efDhvY7qB8k07DoiIB4iy4+QG5FH7sOsDMKjF8KhNKobM4 kNU2a9oU5tvNY1McARdayEacnb2tkOtzXl6SpOFM9wxEa+1B0diq8pjKj0ZMXWk3d9 6M80bwrZyy77Q== X-Virus-Scanned: amavis at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id QRT-eaWSMgfv; Tue, 17 Dec 2024 13:14:34 -0800 (PST) Original-Received: from [192.168.254.12] (unknown [47.154.27.134]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id C99B93C00FB31; Tue, 17 Dec 2024 13:14:34 -0800 (PST) Content-Language: en-US In-Reply-To: <86pllqm5a5.fsf@gnu.org> Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." <emacs-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/emacs-devel> List-Post: <mailto:emacs-devel@gnu.org> List-Help: <mailto:emacs-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=subscribe> Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326617 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/326617> On 2024-12-17 12:19, Eli Zaretskii wrote: > why doesn't the cast to mps_addr_t work to avoid the warning? > mps_addr_t is 'void *', a 32-bit pointer. Is this something specific > to pointers, while casting to a 32-bit integer doesn't trigger the > warnings? Yes, the idea is for GCC to diagnose casts between pointers and wrong-sized integers. > what is the rationale for warning about pointers, > but not about integers? Warning about integer conversion is controlled by -Wconversion. However, that GCC option generates far too many false positives for useful code, so I don't recommend it. I just tried -Wconversion on Emacs master and got over 10,000 bogus warnings. Changing Emacs to pacify -Wconversion would cause more trouble than it'd cure.