From ef8485ad05dd9200b68ea8141fd44c7b976140cd Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 6 Jun 2023 21:27:27 +0300 Subject: [PATCH] ; * src/window.c (window_wants_header_line): Shut up bogus GCC warning. --- src/window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2