]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid a compiler warning on macOS.
authorPhilipp Stephani <phst@google.com>
Wed, 2 Jan 2019 17:56:49 +0000 (18:56 +0100)
committerPhilipp Stephani <phst@google.com>
Wed, 2 Jan 2019 21:08:59 +0000 (22:08 +0100)
* src/xdisp.c (expose_window_tree): Define variable f only if used.

src/xdisp.c

index f6f75f321c4bbe7c1580303fb8b9ea276a4fbaac..8b091c81beff3d992086fb24b6e94fccbbe7b369 100644 (file)
@@ -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