From: Alan Third <alan@idiocy.org>
Date: Fri, 26 Nov 2021 19:57:07 +0000 (+0000)
Subject: Silence NS warnings
X-Git-Tag: emacs-29.0.90~2852^2~11
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9721dcf2754ebad28ac60a9d3152fd26e4c652c4;p=emacs.git

Silence NS warnings

* src/nsterm.m ([EmacsView mouseDown:]): Move variables into the block
where they're used.
---

diff --git a/src/nsterm.m b/src/nsterm.m
index 80117a41a56..747539eae64 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6529,7 +6529,6 @@ not_in_argv (NSString *arg)
 {
   struct ns_display_info *dpyinfo = FRAME_DISPLAY_INFO (emacsframe);
   NSPoint p = [self convertPoint: [theEvent locationInWindow] fromView: nil];
-  int x = 0, y = 0;
 
   NSTRACE ("[EmacsView mouseDown:]");
 
@@ -6561,6 +6560,7 @@ not_in_argv (NSString *arg)
            */
           bool horizontal;
           int lines = 0;
+          int x = 0, y = 0;
           int scrollUp = NO;
 
           /* FIXME: At the top or bottom of the buffer we should