emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 07cbc3b: Avoid compiler warnings on macOS.


From: Philipp Stephani
Subject: [Emacs-diffs] master 07cbc3b: Avoid compiler warnings on macOS.
Date: Sun, 13 Oct 2019 11:46:20 -0400 (EDT)

branch: master
commit 07cbc3bb1cef9e935d64e358fbaa162e0870ea80
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    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 893ce92..252e3ed 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]