emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master f136a4b: Avoid a compiler warning on macOS.


From: Philipp Stephani
Subject: [Emacs-diffs] master f136a4b: Avoid a compiler warning on macOS.
Date: Wed, 2 Jan 2019 16:09:27 -0500 (EST)

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

    Avoid a compiler warning on macOS.
    
    * src/xdisp.c (expose_window_tree): Define variable f only if used.
---
 src/xdisp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xdisp.c b/src/xdisp.c
index f6f75f3..8b091c8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -32390,7 +32390,9 @@ expose_window (struct window *w, XRectangle *fr)
 static bool
 expose_window_tree (struct window *w, XRectangle *r)
 {
+#ifndef HAVE_NS
   struct frame *f = XFRAME (w->frame);
+#endif
   bool mouse_face_overwritten_p = false;
 
   /* NS toolkits may have aleady modified the frame in expectation of



reply via email to

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