]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid compiler warnings on macOS.
authorPhilipp Stephani <phst@google.com>
Sun, 13 Oct 2019 15:24:10 +0000 (17:24 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 13 Oct 2019 15:46:07 +0000 (17:46 +0200)
* src/xdisp.c (note_tab_bar_highlight): Define variables 'dpyinfo' and
'mouse_down_p' only if needed.

src/xdisp.c

index 893ce9269c1d119a7a38aefe32a1b6cf420562f5..252e3ed7c1813d16c931028f978ac67fffe71c22 100644 (file)
@@ -13334,7 +13334,9 @@ note_tab_bar_highlight (struct frame *f, int x, int y)
 {
   Lisp_Object window = f->tab_bar_window;
   struct window *w = XWINDOW (window);
+#ifndef HAVE_NS
   Display_Info *dpyinfo = FRAME_DISPLAY_INFO (f);
+#endif
   Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
   int hpos, vpos;
   struct glyph *glyph;
@@ -13344,7 +13346,9 @@ note_tab_bar_highlight (struct frame *f, int x, int y)
   int prop_idx;
   bool close_p;
   enum draw_glyphs_face draw = DRAW_IMAGE_RAISED;
+#ifndef HAVE_NS
   bool mouse_down_p;
+#endif
   int rc;
 
   /* Function note_mouse_highlight is called with negative X/Y