From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Fri, 16 Feb 2018 17:48:05 +0000 Message-ID: References: <1775923222.898447.1518559575706@mail.libero.it> <83inb0xkfx.fsf@gnu.org> <87o9krdftc.fsf@gmail.com> <83a7wby1x4.fsf@gnu.org> <83r2pnwftj.fsf@gnu.org> <08ac43fb-0b13-8a51-4571-11a21b8ffbdc@dancol.org> <83h8qiw7cd.fsf@gnu.org> <837erddpqb.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518803233 16333 195.159.176.226 (16 Feb 2018 17:47:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2018 17:47:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (windows-nt) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 16 18:47:09 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emk6B-0003ai-SX for ged-emacs-devel@m.gmane.org; Fri, 16 Feb 2018 18:47:03 +0100 Original-Received: from localhost ([::1]:44577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emk8E-0001Mr-02 for ged-emacs-devel@m.gmane.org; Fri, 16 Feb 2018 12:49:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emk7p-0001GH-Sw for emacs-devel@gnu.org; Fri, 16 Feb 2018 12:48:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emk7l-0001Z8-2Q for emacs-devel@gnu.org; Fri, 16 Feb 2018 12:48:45 -0500 Original-Received: from [195.159.176.226] (port=52787 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emk7k-0001X8-Qz for emacs-devel@gnu.org; Fri, 16 Feb 2018 12:48:40 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1emk5W-000187-A5 for emacs-devel@gnu.org; Fri, 16 Feb 2018 18:46:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:lo6tU07ivXfqhpI25sN7iKviQE8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222836 Archived-At: On Fri 16 Feb 2018, Eli Zaretskii wrote: > When Angelo reported this, I said I didn't understand how a similar > code in sysdep.c:emacs_intr_read does compile without a problem, > although it seems to feed a ptrdiff_t value (which should be 64-bit > wide in the 64-bit Windows build, just like size_t, except for the > signedness), similarly to the above. Can you spot why that works? The difference is at the top of pdumper.c: #ifdef __GNUC__ # pragma GCC diagnostic error "-Wconversion" # pragma GCC diagnostic error "-Wshadow" Everything else appears to be built without that warning as error. If I add similar pragmas to sysdep.c then it also emits a dozen or so conversion warnings as errors. AndyM