emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New warning


From: Eli Zaretskii
Subject: Re: New warning
Date: Tue, 06 Jun 2023 19:41:23 +0300

> Date: Tue, 06 Jun 2023 19:14:11 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: luangruo@yahoo.com, emacs-devel@gnu.org
> 
> > From: Eshel Yaron <me@eshelyaron.com>
> > Cc: emacs-devel@gnu.org
> > Date: Tue, 06 Jun 2023 18:59:14 +0300
> > 
> > Po Lu <luangruo@yahoo.com> 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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]