From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: serious compiler warnings in mingw64 build of master Date: Sat, 14 Aug 2021 10:18:56 -0700 Message-ID: <86fsvcgd1b.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11512"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 14 19:20:12 2021 Return-path: 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 ) id 1mExKO-0002lC-2g for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Aug 2021 19:20:12 +0200 Original-Received: from localhost ([::1]:39892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mExKM-00087k-6b for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Aug 2021 13:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mExJH-0007Rm-6e for emacs-devel@gnu.org; Sat, 14 Aug 2021 13:19:03 -0400 Original-Received: from gateway30.websitewelcome.com ([192.185.180.41]:41574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mExJE-0007yb-SQ for emacs-devel@gnu.org; Sat, 14 Aug 2021 13:19:02 -0400 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway30.websitewelcome.com (Postfix) with ESMTP id A8F5CEEC2 for ; Sat, 14 Aug 2021 12:18:58 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id ExJCmv7ASLjoRExJCmuVkj; Sat, 14 Aug 2021 12:18:58 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uhNG8sRc0dz3798+wbrAVIJG6uNavMGpaVYymTdqkLM=; b=gnErzXA/z3askRl9KS0nr00mbP bZ/rVWLo0xv7xPaCeRAd6KGBH3PgNFTs0YH1R+k/582z+1YnOS7/8XK3E9kDnQ3hcfHdju98c8v19 0NHgoJ2jaUwo4lRjWeprlGjpXx7RevgLAyBQgYqkgyKG0qiUWUNpfK8oavlHIYB9yc5KecmKL/mvJ yy1sGvNPzSH1pwOug7arcBel3Uaf+Sn2u3f3KDyqlb6p0vor2SxOUaD7fEZ0pPlpZaBYNmOdTWgpf zzhkM1faA+ViBEo8O/L1Yn6a23zoaO6/QvQaYQVOfbtmK9m8j4WNm08n6KhwwIMXEp5thD3EHVjUg ErdbF5tg==; Original-Received: from [76.77.182.20] (port=52561 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mExJC-002ZU3-1O for emacs-devel@gnu.org; Sat, 14 Aug 2021 11:18:58 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1mExJC-002ZU3-1O X-Source-Sender: (Takver4) [76.77.182.20]:52561 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: permerror client-ip=192.185.180.41; envelope-from=stephen_leake@stephe-leake.org; helo=gateway30.websitewelcome.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272392 Archived-At: I just updated emacs/master (to bf55b5ac17cd5a40ad5ff2e25af7e050602180bb), and it's giving these compiler warnings: CC process.o In file included from process.c:33: process.c: In function 'Fmake_process': lisp.h:1561:31: warning: null pointer dereference [-Wnull-dereference] 1561 | return XSTRING (string)->u.s.data; | ~~~~~~~~~~~~~~~~~~~~~^~~~~ This is from line 1990 in process.c: new_argv[i] = SSDATA (XCAR (tem)); I have not tried to figure out a fix. CC w32.o w32.c: In function '_sys_read_ahead': w32.c:8858:10: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized] 8858 | if (rc == sizeof (char)) | ~~~^~~~~~~~~~~~~~~~ The preceding if/elsif block has no final 'else', so rc may not be set. I'm not clear if the right fix is to init rc to 0, or to add an 'else' that does something like report an error. I've been getting mysterious crashes when mail spawns a process to get more mail, so I'm hoping these are the root cause of that. -- -- Stephe