From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: C warning in MSYS2 build Date: Thu, 05 Oct 2017 21:54:40 +0300 Message-ID: <83inftwhlb.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507229714 22194 195.159.176.226 (5 Oct 2017 18:55:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 18:55:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Copley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 20:55:10 2017 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 1e0BIY-0004vQ-6U for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 20:55:06 +0200 Original-Received: from localhost ([::1]:41615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0BIf-0003E6-Cc for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 14:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0BIT-0003Bm-As for emacs-devel@gnu.org; Thu, 05 Oct 2017 14:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0BIP-0003VI-Bk for emacs-devel@gnu.org; Thu, 05 Oct 2017 14:55:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0BIP-0003VA-89; Thu, 05 Oct 2017 14:54:57 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3657 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e0BIO-0004CX-1A; Thu, 05 Oct 2017 14:54:57 -0400 In-reply-to: (message from Richard Copley on Thu, 5 Oct 2017 18:44:43 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:219135 Archived-At: > From: Richard Copley > Date: Thu, 5 Oct 2017 18:44:43 +0100 > Cc: Eli Zaretskii > > One more warning crept into the MSYS2 build after the recent update to > the system headers/libraries: > > make[1]: Entering directory '/c/projects/emacs/src' > CC indent.o > indent.c: In function 'scan_for_column': > indent.c:69:10: warning: potential null pointer dereference [-Wnull-dereference] > return 0; > ^ > indent.c:69:10: warning: potential null pointer dereference [-Wnull-dereference] > indent.c:69:10: warning: potential null pointer dereference [-Wnull-dereference] > indent.c:69:10: warning: potential null pointer dereference [-Wnull-dereference] > make[1]: Leaving directory '/c/projects/emacs/src' Thanks, but it isn't new. You already reported this very warning in http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00478.html and I already said here: http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00427.html that I thought it was a GCC bug. Paul seemed to confirm that in http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00493.html I have no idea how to fix this, except by removing -Wnull-dereference from the warning flags.