emacs-diffs
[Top][All Lists]
Advanced

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

master 9721dcf: Silence NS warnings


From: Alan Third
Subject: master 9721dcf: Silence NS warnings
Date: Fri, 26 Nov 2021 14:58:24 -0500 (EST)

branch: master
commit 9721dcf2754ebad28ac60a9d3152fd26e4c652c4
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    Silence NS warnings
    
    * src/nsterm.m ([EmacsView mouseDown:]): Move variables into the block
    where they're used.
---
 src/nsterm.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index 80117a4..747539e 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



reply via email to

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