From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: New warning Date: Tue, 06 Jun 2023 19:41:23 +0300 Message-ID: <83h6rk35n0.fsf@gnu.org> References: <87fs74k8zq.fsf.ref@yahoo.com> <87fs74k8zq.fsf@yahoo.com> <83ilc036wc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6052"; mail-complaints-to="usenet@ciao.gmane.io" Cc: me@eshelyaron.com, emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 06 18:42:24 2023 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 1q6ZlH-0001Mf-WF for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Jun 2023 18:42:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6ZkL-0004Xt-42; Tue, 06 Jun 2023 12:41:25 -0400 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 ) id 1q6ZkJ-0004Xc-Tn for emacs-devel@gnu.org; Tue, 06 Jun 2023 12:41:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6ZkJ-0007ni-G7; Tue, 06 Jun 2023 12:41:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=96zxB/PT67Cs6tXxc1qhG75QA5pGa8Efr6edyaBWr0I=; b=hR0+wQqm4QPxrbxco45i j8bfKqH1w+0C265vYSib7wt6fTdzbuT68weyTzHlQrWou1rolEmlzfUdq9olKKO6ezUnzfyx+zK7I tIltuVrrqHFoAZGGskDTCam8L599zmTfMPZ77XuMRoSDZgsFaLtS8rSUMimHkoLiPKD/k36upH0YW rxnbaoC7/T1xmiT5WSHjAY+4omyi9obQ9/2ZCkmASFNjHCjWGoj3lFiIe88NcRrkihK7Pxjm+GcmI rXee/DWymSgiXsChVediTXo3e+vErdI4Ut69xaD3D8LDB2eIrc/6Dl6XjlzJPHJPU6ZM37KleCvnO TwLS/PkKH2p3oA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6ZkI-0002iy-Tt; Tue, 06 Jun 2023 12:41:23 -0400 In-Reply-To: <83ilc036wc.fsf@gnu.org> (message from Eli Zaretskii on Tue, 06 Jun 2023 19:14:11 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306671 Archived-At: > Date: Tue, 06 Jun 2023 19:14:11 +0300 > From: Eli Zaretskii > Cc: luangruo@yahoo.com, emacs-devel@gnu.org > > > From: Eshel Yaron > > Cc: emacs-devel@gnu.org > > Date: Tue, 06 Jun 2023 18:59:14 +0300 > > > > Po Lu writes: > > > > > Since a previous commit, I get: > > > > > > ../../emacs/src/window.c: In function ‘window_wants_header_line’: > > > ../../emacs/src/window.c:5546:19: warning: potential null pointer dereference [-Wnull-dereference] > > > 5546 | || !null_header_line_format (BVAR (XBUFFER (WINDOW_BUFFER (w)), > > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > 5547 | header_line_format), f)) > > > | ~~~~~~~~~~~~~~~~~~~~~~~ I've now tried on two different systems, with and without optimizations, with GCC 9.2 and 11.3, and none of those produce this warning. What version of GCC do you have there, Po Lu?