summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-03 12:22:53 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-03 12:22:53 +0100
commitf1d2501ebe33e148886c2914acd33140e20ee222 (patch)
tree49e0f2df5cf7358f4bbd4f5ec25a2359753ca671
parent00ded43a5a85df57abb74f9e3a38a401f6fbd8fd (diff)
downloadvim-f1d2501ebe33e148886c2914acd33140e20ee222.zip
patch 7.4.1476
Problem: Function arguments marked as unused while they are not. Solution: Remove UNUSED. (Yegappan Lakshmanan)
-rw-r--r--src/diff.c2
-rw-r--r--src/eval.c8
-rw-r--r--src/ex_cmds2.c2
-rw-r--r--src/ex_docmd.c4
-rw-r--r--src/version.c2
-rw-r--r--src/window.c4
6 files changed, 12 insertions, 10 deletions
diff --git a/src/diff.c b/src/diff.c
index be7e38ccb..92e1a054e 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -641,7 +641,7 @@ diff_write(buf_T *buf, char_u *fname)
*/
void
ex_diffupdate(
- exarg_T *eap UNUSED) /* can be NULL */
+ exarg_T *eap) /* can be NULL */
{
buf_T *buf;
int idx_orig;
diff --git a/src/eval.c b/src/eval.c
index 794ff685b..faed315e6 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -9217,7 +9217,7 @@ f_argidx(typval_T *argvars UNUSED, typval_T *rettv)
* "arglistid()" function
*/
static void
-f_arglistid(typval_T *argvars UNUSED, typval_T *rettv)
+f_arglistid(typval_T *argvars, typval_T *rettv)
{
win_T *wp;
@@ -17782,7 +17782,7 @@ f_round(typval_T *argvars, typval_T *rettv)
* "screenattr()" function
*/
static void
-f_screenattr(typval_T *argvars UNUSED, typval_T *rettv)
+f_screenattr(typval_T *argvars, typval_T *rettv)
{
int row;
int col;
@@ -17802,7 +17802,7 @@ f_screenattr(typval_T *argvars UNUSED, typval_T *rettv)
* "screenchar()" function
*/
static void
-f_screenchar(typval_T *argvars UNUSED, typval_T *rettv)
+f_screenchar(typval_T *argvars, typval_T *rettv)
{
int row;
int col;
@@ -20969,7 +20969,7 @@ f_virtcol(typval_T *argvars, typval_T *rettv)
* "visualmode()" function
*/
static void
-f_visualmode(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
+f_visualmode(typval_T *argvars, typval_T *rettv)
{
char_u str[2];
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 88257ccdd..e1a0dfd11 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2033,7 +2033,7 @@ set_arglist(char_u *str)
static int
do_arglist(
char_u *str,
- int what UNUSED,
+ int what,
int after UNUSED) /* 0 means before first one */
{
garray_T new_ga;
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 9900c1b6d..4aa7f5df7 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -9262,7 +9262,7 @@ ex_bang(exarg_T *eap)
* ":undo".
*/
static void
-ex_undo(exarg_T *eap UNUSED)
+ex_undo(exarg_T *eap)
{
if (eap->addr_count == 1) /* :undo 123 */
undo_time(eap->line2, FALSE, FALSE, TRUE);
@@ -9759,7 +9759,7 @@ theend:
#if ((defined(FEAT_SESSION) || defined(FEAT_EVAL)) && defined(vim_mkdir)) \
|| defined(PROTO)
int
-vim_mkdir_emsg(char_u *name, int prot UNUSED)
+vim_mkdir_emsg(char_u *name, int prot)
{
if (vim_mkdir(name, prot) != 0)
{
diff --git a/src/version.c b/src/version.c
index 3491a4bad..c11af3f66 100644
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1476,
+/**/
1475,
/**/
1474,
diff --git a/src/window.c b/src/window.c
index ee69921ff..7dfbe5a99 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3896,8 +3896,8 @@ leave_tabpage(
enter_tabpage(
tabpage_T *tp,
buf_T *old_curbuf UNUSED,
- int trigger_enter_autocmds UNUSED,
- int trigger_leave_autocmds UNUSED)
+ int trigger_enter_autocmds,
+ int trigger_leave_autocmds)
{
int old_off = tp->tp_firstwin->w_winrow;
win_T *next_prevwin = tp->tp_prevwin;