Patch 8.2.3490
Problem: Superfluous return statements.
Solution: Remove superfluous return statements from void functions.
(closes #8977)
Files: src/buffer.c, src/getchar.c, src/memline.c, src/move.c,
src/option.c
*** ../vim-8.2.3489/src/buffer.c 2021-10-04 23:13:06.262424060 +0100
--- src/buffer.c 2021-10-09 15:36:31.782045431 +0100
***************
*** 3029,3036 ****
wip->wi_prev = NULL;
if (wip->wi_next)
wip->wi_next->wi_prev = wip;
-
- return;
}
#ifdef FEAT_DIFF
--- 3029,3034 ----
*** ../vim-8.2.3489/src/getchar.c 2021-10-04 21:51:53.779991087 +0100
--- src/getchar.c 2021-10-09 15:36:31.782045431 +0100
***************
*** 243,249 ****
buf->bh_curr->b_next = p;
buf->bh_curr = p;
}
- return;
}
/*
--- 243,248 ----
*** ../vim-8.2.3489/src/memline.c 2021-10-06 11:27:17.766745946 +0100
--- src/memline.c 2021-10-09 15:36:31.786045475 +0100
***************
*** 1786,1792 ****
apply_autocmds(EVENT_BUFREADPOST, NULL, curbuf->b_fname, FALSE, curbuf);
apply_autocmds(EVENT_BUFWINENTER, NULL, curbuf->b_fname, FALSE, curbuf);
}
- return;
}
/*
--- 1786,1791 ----
***************
*** 3930,3936 ****
}
lowest_marked = 0;
- return;
}
/*
--- 3929,3934 ----
*** ../vim-8.2.3489/src/move.c 2021-10-02 11:23:01.566500862 +0100
--- src/move.c 2021-10-09 15:36:31.786045475 +0100
***************
*** 2682,2688 ****
*lp = loff1; // 1 line overlap
else
*lp = loff2; // 2 lines overlap
- return;
}
/*
--- 2682,2687 ----
*** ../vim-8.2.3489/src/option.c 2021-09-04 17:47:25.184668070 +0100
--- src/option.c 2021-10-09 15:38:07.087081040 +0100
***************
*** 6391,6398 ****
}
#endif
}
-
- return;
}
int
--- 6391,6396 ----
*** ../vim-8.2.3489/src/version.c 2021-10-09 13:58:49.005990220 +0100
--- src/version.c 2021-10-09 15:38:31.547348309 +0100
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 3490,
/**/
--
"Microsoft is like Coke. It's a secret formula, all the money is from
distribution, and their goal is to get Coke everywhere. Open source is like
selling water. There are water companies like Perrier and Poland Spring, but
you're competing with something that's free." -- Carl Howe
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///