]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/window.c (window_wants_header_line): Shut up bogus GCC warning.
authorEli Zaretskii <eliz@gnu.org>
Tue, 6 Jun 2023 18:27:27 +0000 (21:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 6 Jun 2023 18:27:27 +0000 (21:27 +0300)
src/window.c

index 815783754983dc46ce8b5c79d8d5b15cb2f71f4d..3802efb992a52827fe51f484354ed5c976a66bad 100644 (file)
@@ -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)