summaryrefslogtreecommitdiff
path: root/src/nsfns.m
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2021-01-23 19:08:52 +0100
committerPhilipp Stephani <phst@google.com>2021-01-23 19:08:52 +0100
commit17fec603709eb879297a4a0ff0c535c00a13066b (patch)
tree3e2e7dced8dee1f7da5218bb2c6b681c5310b44f /src/nsfns.m
parent27a023d02928366f52ab8d5e5c398ef080483523 (diff)
downloademacs-17fec603709eb879297a4a0ff0c535c00a13066b.tar.gz
emacs-17fec603709eb879297a4a0ff0c535c00a13066b.tar.bz2
emacs-17fec603709eb879297a4a0ff0c535c00a13066b.zip
Avoid a few compilation warnings in Objective-C code.
* src/nsfns.m (Fns_frame_restack): Remove unused variable 'flag'. * src/nsmenu.m (ns_update_menubar): Remove unused variable 'pool'. * src/nsterm.m (focus_view, hide_bell): Define conditionally. (ns_update_end): Define variable 'view' conditionally. (ns_redraw_scroll_bars): Don't define unused function. (copyRect): Don't perform arithmetic on 'void' pointers. (nswindow_orderedIndex_sort): Make static.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index ae114f83e4d..24ea7d7f63b 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -1487,7 +1487,6 @@ Some window managers may refuse to restack windows. */)
{
EmacsWindow *window = (EmacsWindow *)[FRAME_NS_VIEW (f1) window];
NSWindow *window2 = [FRAME_NS_VIEW (f2) window];
- BOOL flag = !NILP (above);
if ([window restackWindow:window2 above:!NILP (above)])
return Qt;