aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2019-10-13 17:24:10 +0200
committerPhilipp Stephani2019-10-13 17:46:07 +0200
commit07cbc3bb1cef9e935d64e358fbaa162e0870ea80 (patch)
treebf145c340410887df9df43ab492556a42e748afc /src
parentfc759eb9b3018394d14e62f12cb4a5c5585c38f2 (diff)
downloademacs-07cbc3bb1cef9e935d64e358fbaa162e0870ea80.tar.gz
emacs-07cbc3bb1cef9e935d64e358fbaa162e0870ea80.zip
Avoid compiler warnings on macOS.
* src/xdisp.c (note_tab_bar_highlight): Define variables 'dpyinfo' and 'mouse_down_p' only if needed.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c4
1 files changed, 4 insertions, 0 deletions
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)
13334{ 13334{
13335 Lisp_Object window = f->tab_bar_window; 13335 Lisp_Object window = f->tab_bar_window;
13336 struct window *w = XWINDOW (window); 13336 struct window *w = XWINDOW (window);
13337#ifndef HAVE_NS
13337 Display_Info *dpyinfo = FRAME_DISPLAY_INFO (f); 13338 Display_Info *dpyinfo = FRAME_DISPLAY_INFO (f);
13339#endif
13338 Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); 13340 Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
13339 int hpos, vpos; 13341 int hpos, vpos;
13340 struct glyph *glyph; 13342 struct glyph *glyph;
@@ -13344,7 +13346,9 @@ note_tab_bar_highlight (struct frame *f, int x, int y)
13344 int prop_idx; 13346 int prop_idx;
13345 bool close_p; 13347 bool close_p;
13346 enum draw_glyphs_face draw = DRAW_IMAGE_RAISED; 13348 enum draw_glyphs_face draw = DRAW_IMAGE_RAISED;
13349#ifndef HAVE_NS
13347 bool mouse_down_p; 13350 bool mouse_down_p;
13351#endif
13348 int rc; 13352 int rc;
13349 13353
13350 /* Function note_mouse_highlight is called with negative X/Y 13354 /* Function note_mouse_highlight is called with negative X/Y