updated for version 7.2-180

This commit is contained in:
Bram Moolenaar
2009-05-17 11:33:22 +00:00
parent bf0c4526bf
commit 2c4278fc73
20 changed files with 528 additions and 569 deletions

View File

@@ -2025,13 +2025,12 @@ buflist_findname_stat(ffname, stp)
* Return fnum of the found buffer. * Return fnum of the found buffer.
* Return < 0 for error. * Return < 0 for error.
*/ */
/*ARGSUSED*/
int int
buflist_findpat(pattern, pattern_end, unlisted, diffmode) buflist_findpat(pattern, pattern_end, unlisted, diffmode)
char_u *pattern; char_u *pattern;
char_u *pattern_end; /* pointer to first char after pattern */ char_u *pattern_end; /* pointer to first char after pattern */
int unlisted; /* find unlisted buffers */ int unlisted; /* find unlisted buffers */
int diffmode; /* find diff-mode buffers only */ int diffmode UNUSED; /* find diff-mode buffers only */
{ {
buf_T *buf; buf_T *buf;
regprog_T *prog; regprog_T *prog;
@@ -2539,7 +2538,6 @@ buflist_findlnum(buf)
/* /*
* List all know file names (for :files and :buffers command). * List all know file names (for :files and :buffers command).
*/ */
/*ARGSUSED*/
void void
buflist_list(eap) buflist_list(eap)
exarg_T *eap; exarg_T *eap;
@@ -3346,14 +3344,13 @@ free_titles()
* If maxwidth is not zero, the string will be filled at any middle marker * If maxwidth is not zero, the string will be filled at any middle marker
* or truncated if too long, fillchar is used for all whitespace. * or truncated if too long, fillchar is used for all whitespace.
*/ */
/*ARGSUSED*/
int int
build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar, maxwidth, hltab, tabtab) build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar, maxwidth, hltab, tabtab)
win_T *wp; win_T *wp;
char_u *out; /* buffer to write into != NameBuff */ char_u *out; /* buffer to write into != NameBuff */
size_t outlen; /* length of out[] */ size_t outlen; /* length of out[] */
char_u *fmt; char_u *fmt;
int use_sandbox; /* "fmt" was set insecurely, use sandbox */ int use_sandbox UNUSED; /* "fmt" was set insecurely, use sandbox */
int fillchar; int fillchar;
int maxwidth; int maxwidth;
struct stl_hlrec *hltab; /* return: HL attributes (can be NULL) */ struct stl_hlrec *hltab; /* return: HL attributes (can be NULL) */

View File

@@ -2255,12 +2255,11 @@ viminfo_readline(virp)
* *
* Return the string in allocated memory (NULL when out of memory). * Return the string in allocated memory (NULL when out of memory).
*/ */
/*ARGSUSED*/
char_u * char_u *
viminfo_readstring(virp, off, convert) viminfo_readstring(virp, off, convert)
vir_T *virp; vir_T *virp;
int off; /* offset for virp->vir_line */ int off; /* offset for virp->vir_line */
int convert; /* convert the string */ int convert UNUSED; /* convert the string */
{ {
char_u *retval; char_u *retval;
char_u *s, *d; char_u *s, *d;
@@ -2736,7 +2735,6 @@ theend:
* May set eap->forceit if a dialog says it's OK to overwrite. * May set eap->forceit if a dialog says it's OK to overwrite.
* Return OK if it's OK, FAIL if it is not. * Return OK if it's OK, FAIL if it is not.
*/ */
/*ARGSUSED*/
static int static int
check_overwrite(eap, buf, fname, ffname, other) check_overwrite(eap, buf, fname, ffname, other)
exarg_T *eap; exarg_T *eap;

View File

@@ -284,7 +284,7 @@
# define mb_cptr2len(p) (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p)) # define mb_cptr2len(p) (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p))
# define MB_COPY_CHAR(f, t) if (has_mbyte) mb_copy_char(&f, &t); else *t++ = *f++ # define MB_COPY_CHAR(f, t) if (has_mbyte) mb_copy_char(&f, &t); else *t++ = *f++
# define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : STRLEN(p)) # define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : (int)STRLEN(p))
# define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p)) # define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p))
#else #else
# define mb_ptr_adv(p) ++p # define mb_ptr_adv(p) ++p

View File

@@ -1505,10 +1505,9 @@ parse_command_name(parmp)
* *
* Also find the --server... arguments and --socketid and --windowid * Also find the --server... arguments and --socketid and --windowid
*/ */
/*ARGSUSED*/
static void static void
early_arg_scan(parmp) early_arg_scan(parmp)
mparm_T *parmp; mparm_T *parmp UNUSED;
{ {
#if defined(FEAT_XCLIPBOARD) || defined(FEAT_CLIENTSERVER) \ #if defined(FEAT_XCLIPBOARD) || defined(FEAT_CLIENTSERVER) \
|| !defined(FEAT_NETBEANS_INTG) || !defined(FEAT_NETBEANS_INTG)
@@ -2380,10 +2379,9 @@ read_stdin()
* Create the requested number of windows and edit buffers in them. * Create the requested number of windows and edit buffers in them.
* Also does recovery if "recoverymode" set. * Also does recovery if "recoverymode" set.
*/ */
/*ARGSUSED*/
static void static void
create_windows(parmp) create_windows(parmp)
mparm_T *parmp; mparm_T *parmp UNUSED;
{ {
#ifdef FEAT_WINDOWS #ifdef FEAT_WINDOWS
int dorewind; int dorewind;
@@ -3851,10 +3849,9 @@ eval_client_expr_to_string(expr)
* return an allocated string. Otherwise return "data". * return an allocated string. Otherwise return "data".
* "*tofree" is set to the result when it needs to be freed later. * "*tofree" is set to the result when it needs to be freed later.
*/ */
/*ARGSUSED*/
char_u * char_u *
serverConvert(client_enc, data, tofree) serverConvert(client_enc, data, tofree)
char_u *client_enc; char_u *client_enc UNUSED;
char_u *data; char_u *data;
char_u **tofree; char_u **tofree;
{ {

View File

@@ -1015,10 +1015,9 @@ dbcs_class(lead, trail)
* Return length in bytes of character "c". * Return length in bytes of character "c".
* Returns 1 for a single-byte character. * Returns 1 for a single-byte character.
*/ */
/* ARGSUSED */
int int
latin_char2len(c) latin_char2len(c)
int c; int c UNUSED;
{ {
return 1; return 1;
} }
@@ -1248,10 +1247,9 @@ utf_char2cells(c)
* Return the number of display cells character at "*p" occupies. * Return the number of display cells character at "*p" occupies.
* This doesn't take care of unprintable characters, use ptr2cells() for that. * This doesn't take care of unprintable characters, use ptr2cells() for that.
*/ */
/*ARGSUSED*/
int int
latin_ptr2cells(p) latin_ptr2cells(p)
char_u *p; char_u *p UNUSED;
{ {
return 1; return 1;
} }
@@ -1293,10 +1291,9 @@ dbcs_ptr2cells(p)
* Return the number of display cells character "c" occupies. * Return the number of display cells character "c" occupies.
* Only takes care of multi-byte chars, not "^C" and such. * Only takes care of multi-byte chars, not "^C" and such.
*/ */
/*ARGSUSED*/
int int
latin_char2cells(c) latin_char2cells(c)
int c; int c UNUSED;
{ {
return 1; return 1;
} }
@@ -1318,11 +1315,10 @@ dbcs_char2cells(c)
* Return number of display cells for char at ScreenLines[off]. * Return number of display cells for char at ScreenLines[off].
* We make sure that the offset used is less than "max_off". * We make sure that the offset used is less than "max_off".
*/ */
/*ARGSUSED*/
int int
latin_off2cells(off, max_off) latin_off2cells(off, max_off)
unsigned off; unsigned off UNUSED;
unsigned max_off; unsigned max_off UNUSED;
{ {
return 1; return 1;
} }
@@ -2419,11 +2415,10 @@ show_utf8()
* Return offset from "p" to the first byte of the character it points into. * Return offset from "p" to the first byte of the character it points into.
* Returns 0 when already at the first byte of a character. * Returns 0 when already at the first byte of a character.
*/ */
/*ARGSUSED*/
int int
latin_head_off(base, p) latin_head_off(base, p)
char_u *base; char_u *base UNUSED;
char_u *p; char_u *p UNUSED;
{ {
return 0; return 0;
} }
@@ -3131,7 +3126,7 @@ enc_locale()
else else
s = p + 1; s = p + 1;
} }
for (i = 0; s[i] != NUL && i < sizeof(buf) - 1; ++i) for (i = 0; s[i] != NUL && i < (int)sizeof(buf) - 1; ++i)
{ {
if (s[i] == '_' || s[i] == '-') if (s[i] == '_' || s[i] == '-')
buf[i] = '-'; buf[i] = '-';
@@ -3582,9 +3577,10 @@ im_show_info(void)
* Callback invoked when the user finished preediting. * Callback invoked when the user finished preediting.
* Put the final string into the input buffer. * Put the final string into the input buffer.
*/ */
/*ARGSUSED0*/
static void static void
im_commit_cb(GtkIMContext *context, const gchar *str, gpointer data) im_commit_cb(GtkIMContext *context UNUSED,
const gchar *str,
gpointer data UNUSED)
{ {
int slen = (int)STRLEN(str); int slen = (int)STRLEN(str);
int add_to_input = TRUE; int add_to_input = TRUE;
@@ -3670,9 +3666,8 @@ im_commit_cb(GtkIMContext *context, const gchar *str, gpointer data)
/* /*
* Callback invoked after start to the preedit. * Callback invoked after start to the preedit.
*/ */
/*ARGSUSED*/
static void static void
im_preedit_start_cb(GtkIMContext *context, gpointer data) im_preedit_start_cb(GtkIMContext *context UNUSED, gpointer data UNUSED)
{ {
#ifdef XIM_DEBUG #ifdef XIM_DEBUG
xim_log("im_preedit_start_cb()\n"); xim_log("im_preedit_start_cb()\n");
@@ -3687,9 +3682,8 @@ im_preedit_start_cb(GtkIMContext *context, gpointer data)
/* /*
* Callback invoked after end to the preedit. * Callback invoked after end to the preedit.
*/ */
/*ARGSUSED*/
static void static void
im_preedit_end_cb(GtkIMContext *context, gpointer data) im_preedit_end_cb(GtkIMContext *context UNUSED, gpointer data UNUSED)
{ {
#ifdef XIM_DEBUG #ifdef XIM_DEBUG
xim_log("im_preedit_end_cb()\n"); xim_log("im_preedit_end_cb()\n");
@@ -3748,9 +3742,8 @@ im_preedit_end_cb(GtkIMContext *context, gpointer data)
* remaining input from within the "retrieve_surrounding" signal handler, this * remaining input from within the "retrieve_surrounding" signal handler, this
* might not be necessary. Gotta ask on vim-dev for opinions. * might not be necessary. Gotta ask on vim-dev for opinions.
*/ */
/*ARGSUSED1*/
static void static void
im_preedit_changed_cb(GtkIMContext *context, gpointer data) im_preedit_changed_cb(GtkIMContext *context, gpointer data UNUSED)
{ {
char *preedit_string = NULL; char *preedit_string = NULL;
int cursor_index = 0; int cursor_index = 0;
@@ -4616,11 +4609,10 @@ xim_set_focus(focus)
} }
} }
/*ARGSUSED*/
void void
im_set_position(row, col) im_set_position(row, col)
int row; int row UNUSED;
int col; int col UNUSED;
{ {
xim_set_preedit(); xim_set_preedit();
} }
@@ -4927,12 +4919,11 @@ static int xim_real_init __ARGS((Window x11_window, Display *x11_display));
static void xim_instantiate_cb __ARGS((Display *display, XPointer client_data, XPointer call_data)); static void xim_instantiate_cb __ARGS((Display *display, XPointer client_data, XPointer call_data));
static void xim_destroy_cb __ARGS((XIM im, XPointer client_data, XPointer call_data)); static void xim_destroy_cb __ARGS((XIM im, XPointer client_data, XPointer call_data));
/*ARGSUSED*/
static void static void
xim_instantiate_cb(display, client_data, call_data) xim_instantiate_cb(display, client_data, call_data)
Display *display; Display *display;
XPointer client_data; XPointer client_data UNUSED;
XPointer call_data; XPointer call_data UNUSED;
{ {
Window x11_window; Window x11_window;
Display *x11_display; Display *x11_display;
@@ -4952,12 +4943,11 @@ xim_instantiate_cb(display, client_data, call_data)
xim_instantiate_cb, NULL); xim_instantiate_cb, NULL);
} }
/*ARGSUSED*/
static void static void
xim_destroy_cb(im, client_data, call_data) xim_destroy_cb(im, client_data, call_data)
XIM im; XIM im UNUSED;
XPointer client_data; XPointer client_data UNUSED;
XPointer call_data; XPointer call_data UNUSED;
{ {
Window x11_window; Window x11_window;
Display *x11_display; Display *x11_display;
@@ -5276,9 +5266,10 @@ xim_decide_input_style()
} }
} }
/*ARGSUSED*/
static void static void
preedit_start_cbproc(XIC thexic, XPointer client_data, XPointer call_data) preedit_start_cbproc(XIC thexic UNUSED,
XPointer client_data UNUSED,
XPointer call_data UNUSED)
{ {
#ifdef XIM_DEBUG #ifdef XIM_DEBUG
xim_log("xim_decide_input_style()\n"); xim_log("xim_decide_input_style()\n");
@@ -5310,9 +5301,10 @@ xim_back_delete(int n)
static GSList *key_press_event_queue = NULL; static GSList *key_press_event_queue = NULL;
static gboolean processing_queued_event = FALSE; static gboolean processing_queued_event = FALSE;
/*ARGSUSED*/
static void static void
preedit_draw_cbproc(XIC thexic, XPointer client_data, XPointer call_data) preedit_draw_cbproc(XIC thexic UNUSED,
XPointer client_data UNUSED,
XPointer call_data)
{ {
XIMPreeditDrawCallbackStruct *draw_data; XIMPreeditDrawCallbackStruct *draw_data;
XIMText *text; XIMText *text;
@@ -5451,18 +5443,20 @@ im_get_feedback_attr(int col)
return -1; return -1;
} }
/*ARGSUSED*/
static void static void
preedit_caret_cbproc(XIC thexic, XPointer client_data, XPointer call_data) preedit_caret_cbproc(XIC thexic UNUSED,
XPointer client_data UNUSED,
XPointer call_data UNUSED)
{ {
#ifdef XIM_DEBUG #ifdef XIM_DEBUG
xim_log("preedit_caret_cbproc()\n"); xim_log("preedit_caret_cbproc()\n");
#endif #endif
} }
/*ARGSUSED*/
static void static void
preedit_done_cbproc(XIC thexic, XPointer client_data, XPointer call_data) preedit_done_cbproc(XIC thexic UNUSED,
XPointer client_data UNUSED,
XPointer call_data UNUSED)
{ {
#ifdef XIM_DEBUG #ifdef XIM_DEBUG
xim_log("preedit_done_cbproc()\n"); xim_log("preedit_done_cbproc()\n");
@@ -5501,9 +5495,8 @@ xim_reset(void)
} }
} }
/*ARGSUSED*/
int int
xim_queue_key_press_event(GdkEventKey *event, int down) xim_queue_key_press_event(GdkEventKey *event, int down UNUSED)
{ {
#ifdef XIM_DEBUG #ifdef XIM_DEBUG
xim_log("xim_queue_key_press_event()\n"); xim_log("xim_queue_key_press_event()\n");
@@ -5519,9 +5512,8 @@ xim_queue_key_press_event(GdkEventKey *event, int down)
return TRUE; return TRUE;
} }
/*ARGSUSED*/
static void static void
preedit_callback_setup(GdkIC *ic) preedit_callback_setup(GdkIC *ic UNUSED)
{ {
XIC xxic; XIC xxic;
XVaNestedList preedit_attr; XVaNestedList preedit_attr;
@@ -5546,9 +5538,8 @@ preedit_callback_setup(GdkIC *ic)
XFree(preedit_attr); XFree(preedit_attr);
} }
/*ARGSUSED*/
static void static void
reset_state_setup(GdkIC *ic) reset_state_setup(GdkIC *ic UNUSED)
{ {
#ifdef USE_X11R6_XIM #ifdef USE_X11R6_XIM
/* don't change the input context when we call reset */ /* don't change the input context when we call reset */

View File

@@ -2340,10 +2340,9 @@ static garray_T menutrans_ga = {0, 0, 0, 0, NULL};
* This function is also defined without the +multi_lang feature, in which * This function is also defined without the +multi_lang feature, in which
* case the commands are ignored. * case the commands are ignored.
*/ */
/*ARGSUSED*/
void void
ex_menutranslate(eap) ex_menutranslate(eap)
exarg_T *eap; exarg_T *eap UNUSED;
{ {
#ifdef FEAT_MULTI_LANG #ifdef FEAT_MULTI_LANG
char_u *arg = eap->arg; char_u *arg = eap->arg;

View File

@@ -818,10 +818,9 @@ delete_first_msg()
/* /*
* ":messages" command. * ":messages" command.
*/ */
/*ARGSUSED*/
void void
ex_messages(eap) ex_messages(eap)
exarg_T *eap; exarg_T *eap UNUSED;
{ {
struct msg_hist *p; struct msg_hist *p;
char_u *s; char_u *s;
@@ -3290,15 +3289,15 @@ msg_advance(col)
* A '&' in a button name becomes a shortcut, so each '&' should be before a * A '&' in a button name becomes a shortcut, so each '&' should be before a
* different letter. * different letter.
*/ */
/* ARGSUSED */
int int
do_dialog(type, title, message, buttons, dfltbutton, textfield) do_dialog(type, title, message, buttons, dfltbutton, textfield)
int type; int type UNUSED;
char_u *title; char_u *title UNUSED;
char_u *message; char_u *message;
char_u *buttons; char_u *buttons;
int dfltbutton; int dfltbutton;
char_u *textfield; /* IObuff for inputdialog(), NULL otherwise */ char_u *textfield UNUSED; /* IObuff for inputdialog(), NULL
otherwise */
{ {
int oldState; int oldState;
int retval = 0; int retval = 0;
@@ -4021,7 +4020,7 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
if (*p != '%') if (*p != '%')
{ {
char *q = strchr(p + 1, '%'); char *q = strchr(p + 1, '%');
size_t n = (q == NULL) ? STRLEN(p) : (q - p); size_t n = (q == NULL) ? STRLEN(p) : (size_t)(q - p);
/* Copy up to the next '%' or NUL without any changes. */ /* Copy up to the next '%' or NUL without any changes. */
if (str_l < str_m) if (str_l < str_m)
@@ -4268,7 +4267,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
precision <= (size_t)0x7fffffffL ? precision precision <= (size_t)0x7fffffffL ? precision
: (size_t)0x7fffffffL); : (size_t)0x7fffffffL);
#endif #endif
str_arg_l = (q == NULL) ? precision : q - str_arg; str_arg_l = (q == NULL) ? precision
: (size_t)(q - str_arg);
} }
break; break;
@@ -4368,7 +4368,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
get_a_arg(arg_idx); get_a_arg(arg_idx);
#else #else
# if defined(FEAT_EVAL) # if defined(FEAT_EVAL)
tvs != NULL ? tv_nr(tvs, &arg_idx) : tvs != NULL ? (unsigned)
tv_nr(tvs, &arg_idx) :
# endif # endif
va_arg(ap, unsigned int); va_arg(ap, unsigned int);
#endif #endif
@@ -4381,7 +4382,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
get_a_arg(arg_idx); get_a_arg(arg_idx);
#else #else
# if defined(FEAT_EVAL) # if defined(FEAT_EVAL)
tvs != NULL ? tv_nr(tvs, &arg_idx) : tvs != NULL ? (unsigned long)
tv_nr(tvs, &arg_idx) :
# endif # endif
va_arg(ap, unsigned long int); va_arg(ap, unsigned long int);
#endif #endif
@@ -4704,7 +4706,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
size_t avail = str_m - str_l; size_t avail = str_m - str_l;
vim_memset(str + str_l, zero_padding ? '0' : ' ', vim_memset(str + str_l, zero_padding ? '0' : ' ',
(size_t)pn > avail ? avail : pn); (size_t)pn > avail ? avail
: (size_t)pn);
} }
str_l += pn; str_l += pn;
} }
@@ -4731,7 +4734,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
size_t avail = str_m - str_l; size_t avail = str_m - str_l;
mch_memmove(str + str_l, str_arg, mch_memmove(str + str_l, str_arg,
(size_t)zn > avail ? avail : zn); (size_t)zn > avail ? avail
: (size_t)zn);
} }
str_l += zn; str_l += zn;
} }
@@ -4746,7 +4750,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
size_t avail = str_m-str_l; size_t avail = str_m-str_l;
vim_memset(str + str_l, '0', vim_memset(str + str_l, '0',
(size_t)zn > avail ? avail : zn); (size_t)zn > avail ? avail
: (size_t)zn);
} }
str_l += zn; str_l += zn;
} }
@@ -4765,7 +4770,7 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
mch_memmove(str + str_l, mch_memmove(str + str_l,
str_arg + zero_padding_insertion_ind, str_arg + zero_padding_insertion_ind,
(size_t)sn > avail ? avail : sn); (size_t)sn > avail ? avail : (size_t)sn);
} }
str_l += sn; str_l += sn;
} }
@@ -4785,7 +4790,8 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
size_t avail = str_m - str_l; size_t avail = str_m - str_l;
vim_memset(str + str_l, ' ', vim_memset(str + str_l, ' ',
(size_t)pn > avail ? avail : pn); (size_t)pn > avail ? avail
: (size_t)pn);
} }
str_l += pn; str_l += pn;
} }

View File

@@ -4147,10 +4147,9 @@ vim_setenv(name, val)
/* /*
* Function given to ExpandGeneric() to obtain an environment variable name. * Function given to ExpandGeneric() to obtain an environment variable name.
*/ */
/*ARGSUSED*/
char_u * char_u *
get_env_name(xp, idx) get_env_name(xp, idx)
expand_T *xp; expand_T *xp UNUSED;
int idx; int idx;
{ {
# if defined(AMIGA) || defined(__MRC__) || defined(__SC__) # if defined(AMIGA) || defined(__MRC__) || defined(__SC__)
@@ -4742,9 +4741,9 @@ find_start_comment(ind_maxcomment) /* XXX */
* If it is then restrict the search to below this line and try again. * If it is then restrict the search to below this line and try again.
*/ */
line = ml_get(pos->lnum); line = ml_get(pos->lnum);
for (p = line; *p && (unsigned)(p - line) < pos->col; ++p) for (p = line; *p && (colnr_T)(p - line) < pos->col; ++p)
p = skip_string(p); p = skip_string(p);
if ((unsigned)(p - line) <= pos->col) if ((colnr_T)(p - line) <= pos->col)
break; break;
cur_maxcomment = curwin->w_cursor.lnum - pos->lnum - 1; cur_maxcomment = curwin->w_cursor.lnum - pos->lnum - 1;
if (cur_maxcomment <= 0) if (cur_maxcomment <= 0)
@@ -6275,7 +6274,7 @@ get_c_indent()
* check for that. * check for that.
*/ */
if ((State & INSERT) if ((State & INSERT)
&& curwin->w_cursor.col < STRLEN(linecopy) && curwin->w_cursor.col < (colnr_T)STRLEN(linecopy)
&& linecopy[curwin->w_cursor.col] == ')') && linecopy[curwin->w_cursor.col] == ')')
linecopy[curwin->w_cursor.col] = NUL; linecopy[curwin->w_cursor.col] = NUL;

View File

@@ -9243,10 +9243,9 @@ nv_open(cap)
} }
#ifdef FEAT_SNIFF #ifdef FEAT_SNIFF
/*ARGSUSED*/
static void static void
nv_sniff(cap) nv_sniff(cap)
cmdarg_T *cap; cmdarg_T *cap UNUSED;
{ {
ProcessSniffRequests(); ProcessSniffRequests();
} }
@@ -9262,10 +9261,9 @@ nv_nbcmd(cap)
#endif #endif
#ifdef FEAT_DND #ifdef FEAT_DND
/*ARGSUSED*/
static void static void
nv_drop(cap) nv_drop(cap)
cmdarg_T *cap; cmdarg_T *cap UNUSED;
{ {
do_put('~', BACKWARD, 1L, PUT_CURSEND); do_put('~', BACKWARD, 1L, PUT_CURSEND);
} }
@@ -9277,7 +9275,6 @@ nv_drop(cap)
* When waiting for a character for 'updatetime' K_CURSORHOLD is put in the * When waiting for a character for 'updatetime' K_CURSORHOLD is put in the
* input buffer. "did_cursorhold" is set to avoid retriggering. * input buffer. "did_cursorhold" is set to avoid retriggering.
*/ */
/*ARGSUSED*/
static void static void
nv_cursorhold(cap) nv_cursorhold(cap)
cmdarg_T *cap; cmdarg_T *cap;

File diff suppressed because it is too large Load Diff

View File

@@ -821,7 +821,6 @@ sig_winch SIGDEFARG(sigarg)
#endif #endif
#if defined(SIGINT) #if defined(SIGINT)
/* ARGSUSED */
static RETSIGTYPE static RETSIGTYPE
catch_sigint SIGDEFARG(sigarg) catch_sigint SIGDEFARG(sigarg)
{ {
@@ -833,7 +832,6 @@ catch_sigint SIGDEFARG(sigarg)
#endif #endif
#if defined(SIGPWR) #if defined(SIGPWR)
/* ARGSUSED */
static RETSIGTYPE static RETSIGTYPE
catch_sigpwr SIGDEFARG(sigarg) catch_sigpwr SIGDEFARG(sigarg)
{ {
@@ -853,7 +851,6 @@ catch_sigpwr SIGDEFARG(sigarg)
/* /*
* signal function for alarm(). * signal function for alarm().
*/ */
/* ARGSUSED */
static RETSIGTYPE static RETSIGTYPE
sig_alarm SIGDEFARG(sigarg) sig_alarm SIGDEFARG(sigarg)
{ {
@@ -1087,7 +1084,6 @@ static RETSIGTYPE sigcont_handler __ARGS(SIGPROTOARG);
/* /*
* signal handler for SIGCONT * signal handler for SIGCONT
*/ */
/* ARGSUSED */
static RETSIGTYPE static RETSIGTYPE
sigcont_handler SIGDEFARG(sigarg) sigcont_handler SIGDEFARG(sigarg)
{ {
@@ -1436,11 +1432,10 @@ x_error_handler(dpy, error_event)
/* /*
* Another X Error handler, just used to check for errors. * Another X Error handler, just used to check for errors.
*/ */
/* ARGSUSED */
static int static int
x_error_check(dpy, error_event) x_error_check(dpy, error_event)
Display *dpy; Display *dpy UNUSED;
XErrorEvent *error_event; XErrorEvent *error_event UNUSED;
{ {
got_x_error = TRUE; got_x_error = TRUE;
return 0; return 0;
@@ -1453,15 +1448,12 @@ x_error_check(dpy, error_event)
*/ */
static int x_IOerror_check __ARGS((Display *dpy)); static int x_IOerror_check __ARGS((Display *dpy));
/* ARGSUSED */
static int static int
x_IOerror_check(dpy) x_IOerror_check(dpy)
Display *dpy; Display *dpy UNUSED;
{ {
/* This function should not return, it causes exit(). Longjump instead. */ /* This function should not return, it causes exit(). Longjump instead. */
LONGJMP(lc_jump_env, 1); LONGJMP(lc_jump_env, 1);
/*NOTREACHED*/
return 0;
} }
# endif # endif
@@ -1470,10 +1462,9 @@ x_IOerror_check(dpy)
*/ */
static int x_IOerror_handler __ARGS((Display *dpy)); static int x_IOerror_handler __ARGS((Display *dpy));
/* ARGSUSED */
static int static int
x_IOerror_handler(dpy) x_IOerror_handler(dpy)
Display *dpy; Display *dpy UNUSED;
{ {
xterm_dpy = NULL; xterm_dpy = NULL;
x11_window = 0; x11_window = 0;
@@ -1482,8 +1473,6 @@ x_IOerror_handler(dpy)
/* This function should not return, it causes exit(). Longjump instead. */ /* This function should not return, it causes exit(). Longjump instead. */
LONGJMP(x_jump_env, 1); LONGJMP(x_jump_env, 1);
/*NOTREACHED*/
return 0;
} }
#endif #endif
@@ -1919,10 +1908,9 @@ set_x11_icon(icon)
#else /* FEAT_X11 */ #else /* FEAT_X11 */
/*ARGSUSED*/
static int static int
get_x11_title(test_only) get_x11_title(test_only)
int test_only; int test_only UNUSED;
{ {
return FALSE; return FALSE;
} }
@@ -2497,11 +2485,10 @@ mch_isFullName(fname)
* file name to remain exactly the same. * file name to remain exactly the same.
* Only required for file systems where case is ignored and preserved. * Only required for file systems where case is ignored and preserved.
*/ */
/*ARGSUSED*/
void void
fname_case(name, len) fname_case(name, len)
char_u *name; char_u *name;
int len; /* buffer size, only used when name gets longer */ int len UNUSED; /* buffer size, only used when name gets longer */
{ {
struct stat st; struct stat st;
char_u *slash, *tail; char_u *slash, *tail;
@@ -5141,7 +5128,6 @@ mch_expandpath(gap, path, flags)
#define SHELL_SPECIAL (char_u *)"\t \"&'$;<>()\\|" #define SHELL_SPECIAL (char_u *)"\t \"&'$;<>()\\|"
/* ARGSUSED */
int int
mch_expand_wildcards(num_pat, pat, num_file, file, flags) mch_expand_wildcards(num_pat, pat, num_file, file, flags)
int num_pat; int num_pat;
@@ -6068,7 +6054,6 @@ sysmouse_close()
/* /*
* Gets info from sysmouse and adds special keys to input buf. * Gets info from sysmouse and adds special keys to input buf.
*/ */
/* ARGSUSED */
static RETSIGTYPE static RETSIGTYPE
sig_sysmouse SIGDEFARG(sigarg) sig_sysmouse SIGDEFARG(sigarg)
{ {
@@ -6632,11 +6617,10 @@ static void xsmp_handle_interaction __ARGS((SmcConn smc_conn, SmPointer client_d
* This is our chance to ask the user if they want to save, * This is our chance to ask the user if they want to save,
* or abort the logout * or abort the logout
*/ */
/*ARGSUSED*/
static void static void
xsmp_handle_interaction(smc_conn, client_data) xsmp_handle_interaction(smc_conn, client_data)
SmcConn smc_conn; SmcConn smc_conn;
SmPointer client_data; SmPointer client_data UNUSED;
{ {
cmdmod_T save_cmdmod; cmdmod_T save_cmdmod;
int cancel_shutdown = False; int cancel_shutdown = False;
@@ -6669,16 +6653,15 @@ xsmp_handle_interaction(smc_conn, client_data)
/* /*
* Callback that starts save-yourself. * Callback that starts save-yourself.
*/ */
/*ARGSUSED*/
static void static void
xsmp_handle_save_yourself(smc_conn, client_data, save_type, xsmp_handle_save_yourself(smc_conn, client_data, save_type,
shutdown, interact_style, fast) shutdown, interact_style, fast)
SmcConn smc_conn; SmcConn smc_conn;
SmPointer client_data; SmPointer client_data UNUSED;
int save_type; int save_type UNUSED;
Bool shutdown; Bool shutdown;
int interact_style; int interact_style UNUSED;
Bool fast; Bool fast UNUSED;
{ {
/* Handle already being in saveyourself */ /* Handle already being in saveyourself */
if (xsmp.save_yourself) if (xsmp.save_yourself)
@@ -6712,11 +6695,10 @@ xsmp_handle_save_yourself(smc_conn, client_data, save_type,
/* /*
* Callback to warn us of imminent death. * Callback to warn us of imminent death.
*/ */
/*ARGSUSED*/
static void static void
xsmp_die(smc_conn, client_data) xsmp_die(smc_conn, client_data)
SmcConn smc_conn; SmcConn smc_conn UNUSED;
SmPointer client_data; SmPointer client_data UNUSED;
{ {
xsmp_close(); xsmp_close();
@@ -6728,11 +6710,10 @@ xsmp_die(smc_conn, client_data)
/* /*
* Callback to tell us that save-yourself has completed. * Callback to tell us that save-yourself has completed.
*/ */
/*ARGSUSED*/
static void static void
xsmp_save_complete(smc_conn, client_data) xsmp_save_complete(smc_conn, client_data)
SmcConn smc_conn; SmcConn smc_conn UNUSED;
SmPointer client_data; SmPointer client_data UNUSED;
{ {
xsmp.save_yourself = False; xsmp.save_yourself = False;
} }
@@ -6742,11 +6723,10 @@ xsmp_save_complete(smc_conn, client_data)
* Callback to tell us that an instigated shutdown was cancelled * Callback to tell us that an instigated shutdown was cancelled
* (maybe even by us) * (maybe even by us)
*/ */
/*ARGSUSED*/
static void static void
xsmp_shutdown_cancelled(smc_conn, client_data) xsmp_shutdown_cancelled(smc_conn, client_data)
SmcConn smc_conn; SmcConn smc_conn;
SmPointer client_data; SmPointer client_data UNUSED;
{ {
if (xsmp.save_yourself) if (xsmp.save_yourself)
SmcSaveYourselfDone(smc_conn, True); SmcSaveYourselfDone(smc_conn, True);
@@ -6758,13 +6738,12 @@ xsmp_shutdown_cancelled(smc_conn, client_data)
/* /*
* Callback to tell us that a new ICE connection has been established. * Callback to tell us that a new ICE connection has been established.
*/ */
/*ARGSUSED*/
static void static void
xsmp_ice_connection(iceConn, clientData, opening, watchData) xsmp_ice_connection(iceConn, clientData, opening, watchData)
IceConn iceConn; IceConn iceConn;
IcePointer clientData; IcePointer clientData UNUSED;
Bool opening; Bool opening;
IcePointer *watchData; IcePointer *watchData UNUSED;
{ {
/* Intercept creation of ICE connection fd */ /* Intercept creation of ICE connection fd */
if (opening) if (opening)

View File

@@ -2240,7 +2240,6 @@ ex_cwindow(eap)
* ":cclose": close the window showing the list of errors. * ":cclose": close the window showing the list of errors.
* ":lclose": close the window showing the location list * ":lclose": close the window showing the location list
*/ */
/*ARGSUSED*/
void void
ex_cclose(eap) ex_cclose(eap)
exarg_T *eap; exarg_T *eap;
@@ -3211,7 +3210,7 @@ ex_vimgrep(eap)
break; break;
col = regmatch.endpos[0].col col = regmatch.endpos[0].col
+ (col == regmatch.endpos[0].col); + (col == regmatch.endpos[0].col);
if (col > STRLEN(ml_get_buf(buf, lnum, FALSE))) if (col > (colnr_T)STRLEN(ml_get_buf(buf, lnum, FALSE)))
break; break;
} }
line_breakcheck(); line_breakcheck();

View File

@@ -270,11 +270,10 @@ redraw_buf_later(buf, type)
* Note that when also inserting/deleting lines w_redraw_top and w_redraw_bot * Note that when also inserting/deleting lines w_redraw_top and w_redraw_bot
* may become invalid and the whole window will have to be redrawn. * may become invalid and the whole window will have to be redrawn.
*/ */
/*ARGSUSED*/
void void
redrawWinline(lnum, invalid) redrawWinline(lnum, invalid)
linenr_T lnum; linenr_T lnum;
int invalid; /* window line height is invalid now */ int invalid UNUSED; /* window line height is invalid now */
{ {
#ifdef FEAT_FOLDING #ifdef FEAT_FOLDING
int i; int i;
@@ -2413,7 +2412,7 @@ fold_line(wp, fold_count, foldinfo, lnum, row)
&& (lnume < bot->lnum && (lnume < bot->lnum
|| (lnume == bot->lnum || (lnume == bot->lnum
&& (bot->col - (*p_sel == 'e')) && (bot->col - (*p_sel == 'e'))
>= STRLEN(ml_get_buf(wp->w_buffer, lnume, FALSE))))))) >= (colnr_T)STRLEN(ml_get_buf(wp->w_buffer, lnume, FALSE)))))))
{ {
if (VIsual_mode == Ctrl_V) if (VIsual_mode == Ctrl_V)
{ {
@@ -2549,14 +2548,13 @@ fill_foldcolumn(p, wp, closed, lnum)
* *
* Return the number of last row the line occupies. * Return the number of last row the line occupies.
*/ */
/* ARGSUSED */
static int static int
win_line(wp, lnum, startrow, endrow, nochange) win_line(wp, lnum, startrow, endrow, nochange)
win_T *wp; win_T *wp;
linenr_T lnum; linenr_T lnum;
int startrow; int startrow;
int endrow; int endrow;
int nochange; /* not updating for changed text */ int nochange UNUSED; /* not updating for changed text */
{ {
int col; /* visual column on screen */ int col; /* visual column on screen */
unsigned off; /* offset in ScreenLines/ScreenAttrs */ unsigned off; /* offset in ScreenLines/ScreenAttrs */
@@ -6098,7 +6096,7 @@ win_redr_custom(wp, draw_ruler)
fillchar, maxwidth, hltab, tabtab); fillchar, maxwidth, hltab, tabtab);
len = (int)STRLEN(buf); len = (int)STRLEN(buf);
while (width < maxwidth && len < sizeof(buf) - 1) while (width < maxwidth && len < (int)sizeof(buf) - 1)
{ {
#ifdef FEAT_MBYTE #ifdef FEAT_MBYTE
len += (*mb_char2bytes)(fillchar, buf + len); len += (*mb_char2bytes)(fillchar, buf + len);
@@ -8655,7 +8653,6 @@ screen_ins_lines(off, row, line_count, end, wp)
* *
* Return OK for success, FAIL if the lines are not deleted. * Return OK for success, FAIL if the lines are not deleted.
*/ */
/*ARGSUSED*/
int int
screen_del_lines(off, row, line_count, end, force, wp) screen_del_lines(off, row, line_count, end, force, wp)
int off; int off;
@@ -8663,7 +8660,7 @@ screen_del_lines(off, row, line_count, end, force, wp)
int line_count; int line_count;
int end; int end;
int force; /* even when line_count > p_ttyscroll */ int force; /* even when line_count > p_ttyscroll */
win_T *wp; /* NULL or window to use width from */ win_T *wp UNUSED; /* NULL or window to use width from */
{ {
int j; int j;
int i; int i;

View File

@@ -4527,12 +4527,11 @@ linewhite(lnum)
* Find identifiers or defines in included files. * Find identifiers or defines in included files.
* if p_ic && (compl_cont_status & CONT_SOL) then ptr must be in lowercase. * if p_ic && (compl_cont_status & CONT_SOL) then ptr must be in lowercase.
*/ */
/*ARGSUSED*/
void void
find_pattern_in_path(ptr, dir, len, whole, skip_comments, find_pattern_in_path(ptr, dir, len, whole, skip_comments,
type, count, action, start_lnum, end_lnum) type, count, action, start_lnum, end_lnum)
char_u *ptr; /* pointer to search pattern */ char_u *ptr; /* pointer to search pattern */
int dir; /* direction of expansion */ int dir UNUSED; /* direction of expansion */
int len; /* length of search pattern */ int len; /* length of search pattern */
int whole; /* match whole words only */ int whole; /* match whole words only */
int skip_comments; /* don't match inside comments */ int skip_comments; /* don't match inside comments */

View File

@@ -950,8 +950,8 @@ static void close_spellbuf __ARGS((buf_T *buf));
*/ */
#ifndef FEAT_MBYTE #ifndef FEAT_MBYTE
/* Non-multi-byte implementation. */ /* Non-multi-byte implementation. */
# define SPELL_TOFOLD(c) ((c) < 256 ? spelltab.st_fold[c] : (c)) # define SPELL_TOFOLD(c) ((c) < 256 ? (int)spelltab.st_fold[c] : (c))
# define SPELL_TOUPPER(c) ((c) < 256 ? spelltab.st_upper[c] : (c)) # define SPELL_TOUPPER(c) ((c) < 256 ? (int)spelltab.st_upper[c] : (c))
# define SPELL_ISUPPER(c) ((c) < 256 ? spelltab.st_isu[c] : FALSE) # define SPELL_ISUPPER(c) ((c) < 256 ? spelltab.st_isu[c] : FALSE)
#else #else
# if defined(HAVE_WCHAR_H) # if defined(HAVE_WCHAR_H)
@@ -962,18 +962,18 @@ static void close_spellbuf __ARGS((buf_T *buf));
* the "w" library function for characters above 255 if available. */ * the "w" library function for characters above 255 if available. */
# ifdef HAVE_TOWLOWER # ifdef HAVE_TOWLOWER
# define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \ # define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \
: (c) < 256 ? spelltab.st_fold[c] : towlower(c)) : (c) < 256 ? (int)spelltab.st_fold[c] : (int)towlower(c))
# else # else
# define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \ # define SPELL_TOFOLD(c) (enc_utf8 && (c) >= 128 ? utf_fold(c) \
: (c) < 256 ? spelltab.st_fold[c] : (c)) : (c) < 256 ? (int)spelltab.st_fold[c] : (c))
# endif # endif
# ifdef HAVE_TOWUPPER # ifdef HAVE_TOWUPPER
# define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \ # define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \
: (c) < 256 ? spelltab.st_upper[c] : towupper(c)) : (c) < 256 ? (int)spelltab.st_upper[c] : (int)towupper(c))
# else # else
# define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \ # define SPELL_TOUPPER(c) (enc_utf8 && (c) >= 128 ? utf_toupper(c) \
: (c) < 256 ? spelltab.st_upper[c] : (c)) : (c) < 256 ? (int)spelltab.st_upper[c] : (c))
# endif # endif
# ifdef HAVE_ISWUPPER # ifdef HAVE_ISWUPPER
@@ -8052,7 +8052,7 @@ put_sugtime(spin, fd)
/* time_t can be up to 8 bytes in size, more than long_u, thus we /* time_t can be up to 8 bytes in size, more than long_u, thus we
* can't use put_bytes() here. */ * can't use put_bytes() here. */
for (i = 7; i >= 0; --i) for (i = 7; i >= 0; --i)
if (i + 1 > sizeof(time_t)) if (i + 1 > (int)sizeof(time_t))
/* ">>" doesn't work well when shifting more bits than avail */ /* ">>" doesn't work well when shifting more bits than avail */
putc(0, fd); putc(0, fd);
else else
@@ -10541,10 +10541,9 @@ check_need_cap(lnum, col)
/* /*
* ":spellrepall" * ":spellrepall"
*/ */
/*ARGSUSED*/
void void
ex_spellrepall(eap) ex_spellrepall(eap)
exarg_T *eap; exarg_T *eap UNUSED;
{ {
pos_T pos = curwin->w_cursor; pos_T pos = curwin->w_cursor;
char_u *frompat; char_u *frompat;
@@ -15604,10 +15603,9 @@ pop:
/* /*
* ":spellinfo" * ":spellinfo"
*/ */
/*ARGSUSED*/
void void
ex_spellinfo(eap) ex_spellinfo(eap)
exarg_T *eap; exarg_T *eap UNUSED;
{ {
int lpi; int lpi;
langp_T *lp; langp_T *lp;
@@ -16153,7 +16151,7 @@ spell_expand_check_cap(col)
*/ */
int int
expand_spelling(lnum, pat, matchp) expand_spelling(lnum, pat, matchp)
linenr_T lnum; linenr_T lnum UNUSED;
char_u *pat; char_u *pat;
char_u ***matchp; char_u ***matchp;
{ {

View File

@@ -3224,11 +3224,10 @@ check_keyword_id(line, startcol, endcolp, flagsp, next_listp, cur_si)
/* /*
* Handle ":syntax case" command. * Handle ":syntax case" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_case(eap, syncing) syn_cmd_case(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
char_u *arg = eap->arg; char_u *arg = eap->arg;
char_u *next; char_u *next;
@@ -3249,11 +3248,10 @@ syn_cmd_case(eap, syncing)
/* /*
* Handle ":syntax spell" command. * Handle ":syntax spell" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_spell(eap, syncing) syn_cmd_spell(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
char_u *arg = eap->arg; char_u *arg = eap->arg;
char_u *next; char_u *next;
@@ -3517,11 +3515,10 @@ syn_clear_one(id, syncing)
/* /*
* Handle ":syntax on" command. * Handle ":syntax on" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_on(eap, syncing) syn_cmd_on(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
syn_cmd_onoff(eap, "syntax"); syn_cmd_onoff(eap, "syntax");
} }
@@ -3529,11 +3526,10 @@ syn_cmd_on(eap, syncing)
/* /*
* Handle ":syntax enable" command. * Handle ":syntax enable" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_enable(eap, syncing) syn_cmd_enable(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
set_internal_string_var((char_u *)"syntax_cmd", (char_u *)"enable"); set_internal_string_var((char_u *)"syntax_cmd", (char_u *)"enable");
syn_cmd_onoff(eap, "syntax"); syn_cmd_onoff(eap, "syntax");
@@ -3543,11 +3539,10 @@ syn_cmd_enable(eap, syncing)
/* /*
* Handle ":syntax reset" command. * Handle ":syntax reset" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_reset(eap, syncing) syn_cmd_reset(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
eap->nextcmd = check_nextcmd(eap->arg); eap->nextcmd = check_nextcmd(eap->arg);
if (!eap->skip) if (!eap->skip)
@@ -3561,11 +3556,10 @@ syn_cmd_reset(eap, syncing)
/* /*
* Handle ":syntax manual" command. * Handle ":syntax manual" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_manual(eap, syncing) syn_cmd_manual(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
syn_cmd_onoff(eap, "manual"); syn_cmd_onoff(eap, "manual");
} }
@@ -3573,11 +3567,10 @@ syn_cmd_manual(eap, syncing)
/* /*
* Handle ":syntax off" command. * Handle ":syntax off" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_off(eap, syncing) syn_cmd_off(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
syn_cmd_onoff(eap, "nosyntax"); syn_cmd_onoff(eap, "nosyntax");
} }
@@ -4461,11 +4454,10 @@ syn_incl_toplevel(id, flagsp)
/* /*
* Handle ":syntax include [@{group-name}] filename" command. * Handle ":syntax include [@{group-name}] filename" command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_include(eap, syncing) syn_cmd_include(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
char_u *arg = eap->arg; char_u *arg = eap->arg;
int sgl_id = 1; int sgl_id = 1;
@@ -4532,11 +4524,10 @@ syn_cmd_include(eap, syncing)
/* /*
* Handle ":syntax keyword {group-name} [{option}] keyword .." command. * Handle ":syntax keyword {group-name} [{option}] keyword .." command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_keyword(eap, syncing) syn_cmd_keyword(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
char_u *arg = eap->arg; char_u *arg = eap->arg;
char_u *group_name_end; char_u *group_name_end;
@@ -5275,11 +5266,10 @@ syn_add_cluster(name)
* Handle ":syntax cluster {cluster-name} [contains={groupname},..] * Handle ":syntax cluster {cluster-name} [contains={groupname},..]
* [add={groupname},..] [remove={groupname},..]". * [add={groupname},..] [remove={groupname},..]".
*/ */
/* ARGSUSED */
static void static void
syn_cmd_cluster(eap, syncing) syn_cmd_cluster(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
char_u *arg = eap->arg; char_u *arg = eap->arg;
char_u *group_name_end; char_u *group_name_end;
@@ -5464,11 +5454,10 @@ get_syn_pattern(arg, ci)
/* /*
* Handle ":syntax sync .." command. * Handle ":syntax sync .." command.
*/ */
/* ARGSUSED */
static void static void
syn_cmd_sync(eap, syncing) syn_cmd_sync(eap, syncing)
exarg_T *eap; exarg_T *eap;
int syncing; /* not used */ int syncing UNUSED;
{ {
char_u *arg_start = eap->arg; char_u *arg_start = eap->arg;
char_u *arg_end; char_u *arg_end;
@@ -6099,10 +6088,9 @@ static char *(case_args[]) = {"match", "ignore", NULL};
* Function given to ExpandGeneric() to obtain the list syntax names for * Function given to ExpandGeneric() to obtain the list syntax names for
* expansion. * expansion.
*/ */
/*ARGSUSED*/
char_u * char_u *
get_syntax_name(xp, idx) get_syntax_name(xp, idx)
expand_T *xp; expand_T *xp UNUSED;
int idx; int idx;
{ {
if (expand_what == EXP_SUBCMD) if (expand_what == EXP_SUBCMD)
@@ -7744,14 +7732,13 @@ fontset_name2handle(name, fixed_width)
/* /*
* Get the font or fontset for one highlight group. * Get the font or fontset for one highlight group.
*/ */
/*ARGSUSED*/
static void static void
hl_do_font(idx, arg, do_normal, do_menu, do_tooltip) hl_do_font(idx, arg, do_normal, do_menu, do_tooltip)
int idx; int idx;
char_u *arg; char_u *arg;
int do_normal; /* set normal font */ int do_normal; /* set normal font */
int do_menu; /* set menu font */ int do_menu UNUSED; /* set menu font */
int do_tooltip; /* set tooltip font */ int do_tooltip UNUSED; /* set tooltip font */
{ {
# ifdef FEAT_XFONTSET # ifdef FEAT_XFONTSET
/* If 'guifontset' is not empty, first try using the name as a /* If 'guifontset' is not empty, first try using the name as a
@@ -9150,10 +9137,9 @@ highlight_list_two(cnt, attr)
* Function given to ExpandGeneric() to obtain the list of group names. * Function given to ExpandGeneric() to obtain the list of group names.
* Also used for synIDattr() function. * Also used for synIDattr() function.
*/ */
/*ARGSUSED*/
char_u * char_u *
get_highlight_name(xp, idx) get_highlight_name(xp, idx)
expand_T *xp; expand_T *xp UNUSED;
int idx; int idx;
{ {
#ifdef FEAT_CMDL_COMPL #ifdef FEAT_CMDL_COMPL

View File

@@ -100,7 +100,7 @@ static char_u *tagmatchname = NULL; /* name of last used tag */
* Tag for preview window is remembered separately, to avoid messing up the * Tag for preview window is remembered separately, to avoid messing up the
* normal tagstack. * normal tagstack.
*/ */
static taggy_T ptag_entry = {NULL}; static taggy_T ptag_entry = {NULL, {INIT_POS_T(0, 0, 0), 0}, 0, 0};
#endif #endif
/* /*
@@ -3791,7 +3791,7 @@ add_tag_field(dict, field_name, start, end)
--end; --end;
} }
len = (int)(end - start); len = (int)(end - start);
if (len > sizeof(buf) - 1) if (len > (int)sizeof(buf) - 1)
len = sizeof(buf) - 1; len = sizeof(buf) - 1;
vim_strncpy(buf, start, len); vim_strncpy(buf, start, len);
} }

View File

@@ -2906,7 +2906,7 @@ add_long_to_buf(val, dst)
int i; int i;
int shift; int shift;
for (i = 1; i <= sizeof(long_u); i++) for (i = 1; i <= (int)sizeof(long_u); i++)
{ {
shift = 8 * (sizeof(long_u) - i); shift = 8 * (sizeof(long_u) - i);
dst[i - 1] = (char_u) ((val >> shift) & 0xff); dst[i - 1] = (char_u) ((val >> shift) & 0xff);
@@ -2937,7 +2937,7 @@ get_long_from_buf(buf, val)
len = get_bytes_from_buf(buf, bytes, (int)sizeof(long_u)); len = get_bytes_from_buf(buf, bytes, (int)sizeof(long_u));
if (len != -1) if (len != -1)
{ {
for (i = 0; i < sizeof(long_u); i++) for (i = 0; i < (int)sizeof(long_u); i++)
{ {
shift = 8 * (sizeof(long_u) - 1 - i); shift = 8 * (sizeof(long_u) - 1 - i);
*val += (long_u)bytes[i] << shift; *val += (long_u)bytes[i] << shift;

View File

@@ -320,10 +320,9 @@ ui_get_shellsize()
* The gui_set_shellsize() or mch_set_shellsize() function will try to set the * The gui_set_shellsize() or mch_set_shellsize() function will try to set the
* new size. If this is not possible, it will adjust Rows and Columns. * new size. If this is not possible, it will adjust Rows and Columns.
*/ */
/*ARGSUSED*/
void void
ui_set_shellsize(mustset) ui_set_shellsize(mustset)
int mustset; /* set by the user */ int mustset UNUSED; /* set by the user */
{ {
#ifdef FEAT_GUI #ifdef FEAT_GUI
if (gui.in_use) if (gui.in_use)
@@ -1127,10 +1126,9 @@ clip_invert_rectangle(row, col, height, width, invert)
* available for pasting. * available for pasting.
* When "both" is TRUE also copy to the '+' register. * When "both" is TRUE also copy to the '+' register.
*/ */
/*ARGSUSED*/
void void
clip_copy_modeless_selection(both) clip_copy_modeless_selection(both)
int both; int both UNUSED;
{ {
char_u *buffer; char_u *buffer;
char_u *bufp; char_u *bufp;
@@ -1701,10 +1699,9 @@ read_from_input_buf(buf, maxlen)
return (int)maxlen; return (int)maxlen;
} }
/*ARGSUSED*/
void void
fill_input_buf(exit_on_error) fill_input_buf(exit_on_error)
int exit_on_error; int exit_on_error UNUSED;
{ {
#if defined(UNIX) || defined(OS2) || defined(VMS) || defined(MACOS_X_UNIX) #if defined(UNIX) || defined(OS2) || defined(VMS) || defined(MACOS_X_UNIX)
int len; int len;
@@ -1992,11 +1989,10 @@ x11_setup_atoms(dpy)
static void clip_x11_request_selection_cb __ARGS((Widget, XtPointer, Atom *, Atom *, XtPointer, long_u *, int *)); static void clip_x11_request_selection_cb __ARGS((Widget, XtPointer, Atom *, Atom *, XtPointer, long_u *, int *));
/* ARGSUSED */
static void static void
clip_x11_request_selection_cb(w, success, sel_atom, type, value, length, clip_x11_request_selection_cb(w, success, sel_atom, type, value, length,
format) format)
Widget w; Widget w UNUSED;
XtPointer success; XtPointer success;
Atom *sel_atom; Atom *sel_atom;
Atom *type; Atom *type;
@@ -2202,10 +2198,9 @@ clip_x11_request_selection(myShell, dpy, cbd)
static Boolean clip_x11_convert_selection_cb __ARGS((Widget, Atom *, Atom *, Atom *, XtPointer *, long_u *, int *)); static Boolean clip_x11_convert_selection_cb __ARGS((Widget, Atom *, Atom *, Atom *, XtPointer *, long_u *, int *));
/* ARGSUSED */
static Boolean static Boolean
clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format) clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format)
Widget w; Widget w UNUSED;
Atom *sel_atom; Atom *sel_atom;
Atom *target; Atom *target;
Atom *type; Atom *type;
@@ -2332,10 +2327,9 @@ clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format)
static void clip_x11_lose_ownership_cb __ARGS((Widget, Atom *)); static void clip_x11_lose_ownership_cb __ARGS((Widget, Atom *));
/* ARGSUSED */
static void static void
clip_x11_lose_ownership_cb(w, sel_atom) clip_x11_lose_ownership_cb(w, sel_atom)
Widget w; Widget w UNUSED;
Atom *sel_atom; Atom *sel_atom;
{ {
if (*sel_atom == clip_plus.sel_atom) if (*sel_atom == clip_plus.sel_atom)
@@ -2368,10 +2362,9 @@ clip_x11_own_selection(myShell, cbd)
* Send the current selection to the clipboard. Do nothing for X because we * Send the current selection to the clipboard. Do nothing for X because we
* will fill in the selection only when requested by another app. * will fill in the selection only when requested by another app.
*/ */
/*ARGSUSED*/
void void
clip_x11_set_selection(cbd) clip_x11_set_selection(cbd)
VimClipboard *cbd; VimClipboard *cbd UNUSED;
{ {
} }
#endif #endif
@@ -2922,11 +2915,10 @@ mouse_comp_pos(win, rowp, colp, lnump)
* Find the window at screen position "*rowp" and "*colp". The positions are * Find the window at screen position "*rowp" and "*colp". The positions are
* updated to become relative to the top-left of the window. * updated to become relative to the top-left of the window.
*/ */
/*ARGSUSED*/
win_T * win_T *
mouse_find_win(rowp, colp) mouse_find_win(rowp, colp)
int *rowp; int *rowp;
int *colp; int *colp UNUSED;
{ {
frame_T *fp; frame_T *fp;

View File

@@ -676,6 +676,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
180,
/**/ /**/
179, 179,
/**/ /**/