summaryrefslogtreecommitdiff
path: root/src/nsterm.h
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2020-12-19 20:46:55 +0000
committerAlan Third <alan@idiocy.org>2021-01-01 22:41:26 +0000
commit1c5208ba71156d225b54592e5e36788748f48ade (patch)
tree8be81e5210274dc9bef3c1212826e3aee52249b1 /src/nsterm.h
parent107978365e17ede02d85b52fcbd99512dcc87428 (diff)
downloademacs-1c5208ba71156d225b54592e5e36788748f48ade.tar.gz
Fix GNUstep warnings
* src/nsterm.h: EmacsSurface is only required if NS_DRAW_TO_BUFFER is defined. * src/nsterm.m (ns_judge_scroll_bars): Remove unused variable. * src/nsmenu.m (update_frame_tool_bar): (ns_update_menubar): Remove unused variables.
Diffstat (limited to 'src/nsterm.h')
-rw-r--r--src/nsterm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index 9d3ac75caf3..3fb64494f76 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -705,7 +705,7 @@ typedef id instancetype;
+ (CGFloat)scrollerWidth;
@end
-
+#ifdef NS_DRAW_TO_BUFFER
@interface EmacsSurface : NSObject
{
NSMutableArray *cache;
@@ -722,6 +722,7 @@ typedef id instancetype;
- (void) releaseContext;
- (IOSurfaceRef) getSurface;
@end
+#endif
/* ==========================================================================