From 3826c0513bc9370583be550c864358c7eeb5605a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=3D=3FUTF-8=3Fq=3FDundar=3D20G=3DC3=3DB6c=3F=3D?= Date: Sat, 9 Oct 2021 15:39:25 +0100 Subject: [PATCH] patch 8.2.3490: superfluous return statements Problem: Superfluous return statements. Solution: Remove superfluous return statements from void functions. (closes #8977) --- src/buffer.c | 2 -- src/getchar.c | 1 - src/memline.c | 2 -- src/move.c | 1 - src/option.c | 2 -- src/version.c | 2 ++ 6 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index bcbdf839dd..56c1bf2f40 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3029,8 +3029,6 @@ buflist_setfpos( wip->wi_prev = NULL; if (wip->wi_next) wip->wi_next->wi_prev = wip; - - return; } #ifdef FEAT_DIFF diff --git a/src/getchar.c b/src/getchar.c index 93e3b879ed..f2f38853b7 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -243,7 +243,6 @@ add_buff( buf->bh_curr->b_next = p; buf->bh_curr = p; } - return; } /* diff --git a/src/memline.c b/src/memline.c index b43f10e12e..6ea860d4fe 100644 --- a/src/memline.c +++ b/src/memline.c @@ -1786,7 +1786,6 @@ theend: apply_autocmds(EVENT_BUFREADPOST, NULL, curbuf->b_fname, FALSE, curbuf); apply_autocmds(EVENT_BUFWINENTER, NULL, curbuf->b_fname, FALSE, curbuf); } - return; } /* @@ -3930,7 +3929,6 @@ ml_clearmarked(void) } lowest_marked = 0; - return; } /* diff --git a/src/move.c b/src/move.c index 9e3a714fd0..8fe00bb678 100644 --- a/src/move.c +++ b/src/move.c @@ -2682,7 +2682,6 @@ get_scroll_overlap(lineoff_T *lp, int dir) *lp = loff1; // 1 line overlap else *lp = loff2; // 2 lines overlap - return; } /* diff --git a/src/option.c b/src/option.c index 124f76bbf7..fe5ff4367c 100644 --- a/src/option.c +++ b/src/option.c @@ -6391,8 +6391,6 @@ set_context_in_set_cmd( } #endif } - - return; } int diff --git a/src/version.c b/src/version.c index 43f87aabec..074c89656e 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3490, /**/ 3489, /**/