[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New warning
From: |
Po Lu |
Subject: |
Re: New warning |
Date: |
Wed, 07 Jun 2023 07:26:22 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> 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?
GCC 13.1.1.
Thanks.