summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-17 14:24:23 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-17 14:24:23 +0000
commitb85cb21cb161eeb4b8dcd8d0401e1e0faa38c921 (patch)
tree00e026d805a6b10d18e10957fd71bc0d43c3723f /src/gui.c
parent2c4278fc738cca3fcd70cffd7ddc865ea9783694 (diff)
downloadvim-git-b85cb21cb161eeb4b8dcd8d0401e1e0faa38c921.tar.gz
updated for version 7.2-181v7.2.181
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/gui.c b/src/gui.c
index bcc3c68bc..a80c9aa7a 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -678,11 +678,10 @@ gui_shell_closed()
* Return OK when able to set the font. When it failed FAIL is returned and
* the fonts are unchanged.
*/
-/*ARGSUSED*/
int
gui_init_font(font_list, fontset)
char_u *font_list;
- int fontset;
+ int fontset UNUSED;
{
#define FONTLEN 320
char_u font_name[FONTLEN];
@@ -1138,10 +1137,9 @@ gui_position_menu()
* Position the various GUI components (text area, menu). The vertical
* scrollbars are NOT handled here. See gui_update_scrollbars().
*/
-/*ARGSUSED*/
static void
gui_position_components(total_width)
- int total_width;
+ int total_width UNUSED;
{
int text_area_x;
int text_area_y;
@@ -1374,10 +1372,9 @@ gui_get_shellsize()
* If "fit_to_display" is TRUE then the size may be reduced to fit the window
* on the screen.
*/
-/*ARGSUSED*/
void
gui_set_shellsize(mustset, fit_to_display, direction)
- int mustset; /* set by the user */
+ int mustset UNUSED; /* set by the user */
int fit_to_display;
int direction; /* RESIZE_HOR, RESIZE_VER */
{
@@ -3120,7 +3117,6 @@ static int prev_which_scrollbars[3];
* If "oldval" is not NULL, "oldval" is the previous value, the new value is
* in p_go.
*/
-/*ARGSUSED*/
void
gui_init_which_components(oldval)
char_u *oldval;
@@ -4411,7 +4407,7 @@ gui_do_horiz_scroll()
if (curwin->w_p_wrap)
return FALSE;
- if (curwin->w_leftcol == scrollbar_value)
+ if ((long_u)curwin->w_leftcol == scrollbar_value)
return FALSE;
curwin->w_leftcol = (colnr_T)scrollbar_value;
@@ -4424,7 +4420,7 @@ gui_do_horiz_scroll()
&& longest_lnum < curwin->w_botline
&& !virtual_active())
{
- if (scrollbar_value > scroll_line_len(curwin->w_cursor.lnum))
+ if (scrollbar_value > (long_u)scroll_line_len(curwin->w_cursor.lnum))
{
curwin->w_cursor.lnum = longest_lnum;
curwin->w_cursor.col = 0;
@@ -4670,7 +4666,6 @@ gui_mouse_correct()
/*
* Find window where the mouse pointer "y" coordinate is in.
*/
-/*ARGSUSED*/
static win_T *
xy2win(x, y)
int x;
@@ -5124,7 +5119,6 @@ gui_wingoto_xy(x, y)
* of dropped files, they will be freed in this function, and caller can't use
* fnames after call this function.
*/
-/*ARGSUSED*/
void
gui_handle_drop(x, y, modifiers, fnames, count)
int x;