From 9721dcf2754ebad28ac60a9d3152fd26e4c652c4 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Fri, 26 Nov 2021 19:57:07 +0000 Subject: [PATCH] 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 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 -- 2.39.5