summaryrefslogtreecommitdiff
path: root/src/nsimage.m
diff options
context:
space:
mode:
authorJan D <jan.h.d@swipnet.se>2015-05-15 17:06:03 +0200
committerJan D <jan.h.d@swipnet.se>2015-05-15 17:06:16 +0200
commitb00168e833ccca1b5c0eebe56688ec44e0efabe7 (patch)
tree496d6cebab472c5b4a24d78194e40399f72028d0 /src/nsimage.m
parentd02ce2c4321d7b99abc2de21e01f9504008ec735 (diff)
downloademacs-b00168e833ccca1b5c0eebe56688ec44e0efabe7.tar.gz
Fix NS warnings.
* nsmenu.m (ns_popup_dialog) * nsimage.m (initFromXBM:width:height:fg:bg:) * nsfns.m (Fx_create_frame): Remove unused variables. (Fns_read_file_name): Initialize fname, remove ret. * nsterm.m (ns_draw_window_cursor): Handle DEFAULT_CURSOR in switch. (ns_get_color, ns_set_horizontal_scroll_bar, keyDown): Remove unused variable. (init): Add parantesis in if. (ns_create_terminal): Assign set_horizontal_scroll_bar_hook.
Diffstat (limited to 'src/nsimage.m')
-rw-r--r--src/nsimage.m1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index 4d01419edf9..9302cd2f212 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -211,7 +211,6 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
- initFromXBM: (unsigned char *)bits width: (int)w height: (int)h
fg: (unsigned long)fg bg: (unsigned long)bg
{
- int bpr = (w + 7) / 8;
unsigned char *planes[5];
[self initWithSize: NSMakeSize (w, h)];