From 07cbc3bb1cef9e935d64e358fbaa162e0870ea80 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Sun, 13 Oct 2019 17:24:10 +0200 Subject: [PATCH] Avoid compiler warnings on macOS. * src/xdisp.c (note_tab_bar_highlight): Define variables 'dpyinfo' and 'mouse_down_p' only if needed. --- src/xdisp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 893ce9269c1..252e3ed7c18 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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 -- 2.39.5