From: Eli Zaretskii Date: Tue, 6 Jun 2023 18:27:27 +0000 (+0300) Subject: ; * src/window.c (window_wants_header_line): Shut up bogus GCC warning. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef8485ad05dd9200b68ea8141fd44c7b976140cd;p=emacs.git ; * src/window.c (window_wants_header_line): Shut up bogus GCC warning. --- diff --git a/src/window.c b/src/window.c index 81578375498..3802efb992a 100644 --- a/src/window.c +++ b/src/window.c @@ -5534,13 +5534,14 @@ window_wants_header_line (struct window *w) = window_parameter (w, Qheader_line_format); struct frame *f = WINDOW_XFRAME (w); + Lisp_Object wbuffer = WINDOW_BUFFER (w); - return (WINDOW_LEAF_P (w) + return (BUFFERP (wbuffer) && !MINI_WINDOW_P (w) && !WINDOW_PSEUDO_P (w) && !EQ (window_header_line_format, Qnone) && (!null_header_line_format (window_header_line_format, f) - || !null_header_line_format (BVAR (XBUFFER (WINDOW_BUFFER (w)), + || !null_header_line_format (BVAR (XBUFFER (wbuffer), header_line_format), f)) && (WINDOW_PIXEL_HEIGHT (w) > (window_wants_mode_line (w)