aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2019-11-28 16:48:37 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2019-11-28 16:48:37 -0300
commit3974c4a72459fc07acef3ee1369d63a7b8305b62 (patch)
tree155f2b6d3d285371e6df5a6b5d46ebebbf448179
parent8a7e9e9dad56419ff987e5f6baaf411a03c1951a (diff)
downloadpostgresql-3974c4a72459fc07acef3ee1369d63a7b8305b62.tar.gz
postgresql-3974c4a72459fc07acef3ee1369d63a7b8305b62.zip
Remove useless "return;" lines
Discussion: https://postgr.es/m/20191128144653.GA27883@alvherre.pgsql
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch.c2
-rw-r--r--contrib/ltree/ltxtquery_io.c1
-rw-r--r--contrib/pg_standby/pg_standby.c1
-rw-r--r--contrib/pgcrypto/mbuf.c2
-rw-r--r--contrib/seg/seg.c2
-rw-r--r--contrib/sepgsql/selinux.c2
-rw-r--r--src/backend/access/gist/gist.c2
-rw-r--r--src/backend/access/rmgrdesc/genericdesc.c2
-rw-r--r--src/backend/access/transam/twophase.c2
-rw-r--r--src/backend/access/transam/xact.c1
-rw-r--r--src/backend/executor/nodeTableFuncscan.c2
-rw-r--r--src/backend/jit/llvm/llvmjit.c2
-rw-r--r--src/backend/libpq/hba.c1
-rw-r--r--src/backend/replication/logical/launcher.c2
-rw-r--r--src/backend/replication/walsender.c3
-rw-r--r--src/backend/rewrite/rowsecurity.c2
-rw-r--r--src/backend/utils/adt/datetime.c2
-rw-r--r--src/bin/pg_ctl/pg_ctl.c2
-rw-r--r--src/bin/pg_dump/compress_io.c4
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.c5
-rw-r--r--src/bin/pg_dump/pg_backup_custom.c7
-rw-r--r--src/bin/pg_dump/pg_backup_directory.c7
-rw-r--r--src/bin/pg_dump/pg_backup_null.c3
-rw-r--r--src/bin/pg_dump/pg_backup_tar.c3
-rw-r--r--src/bin/pg_dump/pg_dump.c2
-rw-r--r--src/bin/pg_upgrade/parallel.c4
-rw-r--r--src/bin/pg_upgrade/relfilenode.c4
-rw-r--r--src/bin/pg_upgrade/tablespace.c2
-rw-r--r--src/bin/psql/common.c2
-rw-r--r--src/fe_utils/print.c2
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/datetime.c1
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt_common.c2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/timestamp.c1
-rw-r--r--src/interfaces/libpq/fe-auth-scram.c1
-rw-r--r--src/pl/plperl/plperl.c4
-rw-r--r--src/pl/plpgsql/src/pl_exec.c2
-rw-r--r--src/port/win32error.c1
-rw-r--r--src/test/examples/testlo.c2
-rw-r--r--src/test/examples/testlo64.c2
40 files changed, 0 insertions, 96 deletions
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.c b/contrib/fuzzystrmatch/fuzzystrmatch.c
index b8992f7c3cb..ad1ea931960 100644
--- a/contrib/fuzzystrmatch/fuzzystrmatch.c
+++ b/contrib/fuzzystrmatch/fuzzystrmatch.c
@@ -698,8 +698,6 @@ _metaphone(char *word, /* IN */
} /* END FOR */
End_Phoned_Word;
-
- return;
} /* END metaphone */
diff --git a/contrib/ltree/ltxtquery_io.c b/contrib/ltree/ltxtquery_io.c
index 054c5d93356..db347f77721 100644
--- a/contrib/ltree/ltxtquery_io.c
+++ b/contrib/ltree/ltxtquery_io.c
@@ -192,7 +192,6 @@ pushval_asis(QPRS_STATE *state, int type, char *strval, int lenval, uint16 flag)
*(state->curop) = '\0';
state->curop++;
state->sumlen += lenval + 1;
- return;
}
#define STACKDEPTH 32
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c
index c6beea70705..9784d7aef38 100644
--- a/contrib/pg_standby/pg_standby.c
+++ b/contrib/pg_standby/pg_standby.c
@@ -545,7 +545,6 @@ CheckForExternalTrigger(void)
fprintf(stderr, "WARNING: invalid content in \"%s\"\n", triggerPath);
fflush(stderr);
- return;
}
/*
diff --git a/contrib/pgcrypto/mbuf.c b/contrib/pgcrypto/mbuf.c
index 0467212a281..548ef620974 100644
--- a/contrib/pgcrypto/mbuf.c
+++ b/contrib/pgcrypto/mbuf.c
@@ -94,8 +94,6 @@ prepare_room(MBuf *mbuf, int block_len)
mbuf->data_end = newbuf + (mbuf->data_end - mbuf->data);
mbuf->read_pos = newbuf + (mbuf->read_pos - mbuf->data);
mbuf->data = newbuf;
-
- return;
}
int
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c
index f87456405c3..4ff6694193c 100644
--- a/contrib/seg/seg.c
+++ b/contrib/seg/seg.c
@@ -706,8 +706,6 @@ rt_seg_size(SEG *a, float *size)
*size = 0.0;
else
*size = (float) Abs(a->upper - a->lower);
-
- return;
}
Datum
diff --git a/contrib/sepgsql/selinux.c b/contrib/sepgsql/selinux.c
index 5e6189a4c31..71792725766 100644
--- a/contrib/sepgsql/selinux.c
+++ b/contrib/sepgsql/selinux.c
@@ -809,8 +809,6 @@ sepgsql_compute_avd(const char *scontext,
if (avd_ex.auditdeny & av_code_ex)
avd->auditdeny |= av_code;
}
-
- return;
}
/*
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 8d9c8d025dc..3800f58ce72 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -1088,8 +1088,6 @@ gistFindCorrectParent(Relation r, GISTInsertStack *child)
LockBuffer(child->parent->buffer, GIST_EXCLUSIVE);
gistFindCorrectParent(r, child);
}
-
- return;
}
/*
diff --git a/src/backend/access/rmgrdesc/genericdesc.c b/src/backend/access/rmgrdesc/genericdesc.c
index 0fe02dc85a7..3bad0578eb7 100644
--- a/src/backend/access/rmgrdesc/genericdesc.c
+++ b/src/backend/access/rmgrdesc/genericdesc.c
@@ -43,8 +43,6 @@ generic_desc(StringInfo buf, XLogReaderState *record)
else
appendStringInfo(buf, "offset %u, length %u", offset, length);
}
-
- return;
}
/*
diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c
index b3ad0d08e30..529976885f6 100644
--- a/src/backend/access/transam/twophase.c
+++ b/src/backend/access/transam/twophase.c
@@ -2436,6 +2436,4 @@ PrepareRedoRemove(TransactionId xid, bool giveWarning)
if (gxact->ondisk)
RemoveTwoPhaseFile(xid, giveWarning);
RemoveGXact(gxact);
-
- return;
}
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index 5c0d0f2af06..5353b6ab0b2 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -3428,7 +3428,6 @@ CheckTransactionBlock(bool isTopLevel, bool throwError, const char *stmtType)
/* translator: %s represents an SQL statement name */
errmsg("%s can only be used in transaction blocks",
stmtType)));
- return;
}
/*
diff --git a/src/backend/executor/nodeTableFuncscan.c b/src/backend/executor/nodeTableFuncscan.c
index 21cf3ca0c9f..ffcf4613f44 100644
--- a/src/backend/executor/nodeTableFuncscan.c
+++ b/src/backend/executor/nodeTableFuncscan.c
@@ -335,8 +335,6 @@ tfuncFetchRows(TableFuncScanState *tstate, ExprContext *econtext)
MemoryContextSwitchTo(oldcxt);
MemoryContextReset(tstate->perTableCxt);
-
- return;
}
/*
diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c
index 1c851e00fc4..3b52d8cc211 100644
--- a/src/backend/jit/llvm/llvmjit.c
+++ b/src/backend/jit/llvm/llvmjit.c
@@ -834,8 +834,6 @@ llvm_create_types(void)
* Leave the module alive, otherwise references to function would be
* dangling.
*/
-
- return;
}
/*
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c
index cc4b661433f..9989904769c 100644
--- a/src/backend/libpq/hba.c
+++ b/src/backend/libpq/hba.c
@@ -2903,7 +2903,6 @@ check_ident_usermap(IdentLine *identLine, const char *usermap_name,
*found_p = true;
}
}
- return;
}
diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c
index 1f8821cc437..4643af95fee 100644
--- a/src/backend/replication/logical/launcher.c
+++ b/src/backend/replication/logical/launcher.c
@@ -223,8 +223,6 @@ WaitForReplicationWorkerAttach(LogicalRepWorker *worker,
CHECK_FOR_INTERRUPTS();
}
}
-
- return;
}
/*
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index ac9209747a4..8bafa65e50a 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -2301,7 +2301,6 @@ WalSndLoop(WalSndSendDataCallback send_data)
WAIT_EVENT_WAL_SENDER_MAIN);
}
}
- return;
}
/* Initialize a per-walsender data structure for this walsender process */
@@ -2757,8 +2756,6 @@ retry:
(uint32) (sentPtr >> 32), (uint32) sentPtr);
set_ps_display(activitymsg, false);
}
-
- return;
}
/*
diff --git a/src/backend/rewrite/rowsecurity.c b/src/backend/rewrite/rowsecurity.c
index df7bde380d0..1969d53a110 100644
--- a/src/backend/rewrite/rowsecurity.c
+++ b/src/backend/rewrite/rowsecurity.c
@@ -394,8 +394,6 @@ get_row_security_policies(Query *root, RangeTblEntry *rte, int rt_index,
* when necessary (eg: role changes)
*/
*hasRowSecurity = true;
-
- return;
}
/*
diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c
index c911d7223c2..b6ac90c0512 100644
--- a/src/backend/utils/adt/datetime.c
+++ b/src/backend/utils/adt/datetime.c
@@ -313,8 +313,6 @@ j2date(int jd, int *year, int *month, int *day)
quad = julian * 2141 / 65536;
*day = julian - 7834 * quad / 256;
*month = (quad + 10) % MONTHS_PER_YEAR + 1;
-
- return;
} /* j2date() */
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index 95e5fafe1f4..65f9fb4c0a9 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -422,8 +422,6 @@ free_readfile(char **optlines)
free(curr_line);
free(optlines);
-
- return;
}
/*
diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c
index 03c3e73ad04..b2ca5654945 100644
--- a/src/bin/pg_dump/compress_io.c
+++ b/src/bin/pg_dump/compress_io.c
@@ -192,7 +192,6 @@ WriteDataToArchive(ArchiveHandle *AH, CompressorState *cs,
WriteDataToArchiveNone(AH, cs, data, dLen);
break;
}
- return;
}
/*
@@ -308,8 +307,6 @@ WriteDataToArchiveZlib(ArchiveHandle *AH, CompressorState *cs,
cs->zp->next_in = (void *) unconstify(char *, data);
cs->zp->avail_in = dLen;
DeflateCompressorZlib(AH, cs, false);
-
- return;
}
static void
@@ -407,7 +404,6 @@ WriteDataToArchiveNone(ArchiveHandle *AH, CompressorState *cs,
const char *data, size_t dLen)
{
cs->writeF(AH, data, dLen);
- return;
}
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
index d051f267baa..77bf9edaba4 100644
--- a/src/bin/pg_dump/pg_backup_archiver.c
+++ b/src/bin/pg_dump/pg_backup_archiver.c
@@ -1045,8 +1045,6 @@ WriteData(Archive *AHX, const void *data, size_t dLen)
fatal("internal error -- WriteData cannot be called outside the context of a DataDumper routine");
AH->WriteDataPtr(AH, data, dLen);
-
- return;
}
/*
@@ -1461,7 +1459,6 @@ void
archputs(const char *s, Archive *AH)
{
WriteData(AH, s, strlen(s));
- return;
}
/* Public */
@@ -1736,8 +1733,6 @@ ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
if (bytes_written != size * nmemb)
WRITE_ERROR_EXIT;
-
- return;
}
/* on some error, we may decide to go on... */
diff --git a/src/bin/pg_dump/pg_backup_custom.c b/src/bin/pg_dump/pg_backup_custom.c
index fc742f5b560..369dcea4291 100644
--- a/src/bin/pg_dump/pg_backup_custom.c
+++ b/src/bin/pg_dump/pg_backup_custom.c
@@ -317,8 +317,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
if (dLen > 0)
/* WriteDataToArchive() internally throws write errors */
WriteDataToArchive(AH, cs, data, dLen);
-
- return;
}
/*
@@ -644,8 +642,6 @@ _WriteBuf(ArchiveHandle *AH, const void *buf, size_t len)
if (fwrite(buf, 1, len, AH->FH) != len)
WRITE_ERROR_EXIT;
ctx->filePos += len;
-
- return;
}
/*
@@ -663,8 +659,6 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
if (fread(buf, 1, len, AH->FH) != len)
READ_ERROR_EXIT(AH->FH);
ctx->filePos += len;
-
- return;
}
/*
@@ -945,7 +939,6 @@ _CustomWriteFunc(ArchiveHandle *AH, const char *buf, size_t len)
WriteInt(AH, len);
_WriteBuf(AH, buf, len);
}
- return;
}
/*
diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c
index aa00bcaaff2..8631abb43a1 100644
--- a/src/bin/pg_dump/pg_backup_directory.c
+++ b/src/bin/pg_dump/pg_backup_directory.c
@@ -349,9 +349,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
if (dLen > 0 && cfwrite(data, dLen, ctx->dataFH) != dLen)
fatal("could not write to output file: %s",
get_cfp_error(ctx->dataFH));
-
-
- return;
}
/*
@@ -517,8 +514,6 @@ _WriteBuf(ArchiveHandle *AH, const void *buf, size_t len)
if (cfwrite(buf, len, ctx->dataFH) != len)
fatal("could not write to output file: %s",
get_cfp_error(ctx->dataFH));
-
- return;
}
/*
@@ -537,8 +532,6 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
*/
if (cfread(buf, len, ctx->dataFH) != len)
fatal("could not read from input file: end of file");
-
- return;
}
/*
diff --git a/src/bin/pg_dump/pg_backup_null.c b/src/bin/pg_dump/pg_backup_null.c
index c62f9436aaa..0458979f3c0 100644
--- a/src/bin/pg_dump/pg_backup_null.c
+++ b/src/bin/pg_dump/pg_backup_null.c
@@ -86,7 +86,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
{
/* Just send it to output, ahwrite() already errors on failure */
ahwrite(data, 1, dLen, AH);
- return;
}
/*
@@ -109,7 +108,6 @@ _WriteBlobData(ArchiveHandle *AH, const void *data, size_t dLen)
destroyPQExpBuffer(buf);
}
- return;
}
static void
@@ -221,7 +219,6 @@ static void
_WriteBuf(ArchiveHandle *AH, const void *buf, size_t len)
{
/* Don't do anything */
- return;
}
static void
diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c
index fd74835165b..775118f2978 100644
--- a/src/bin/pg_dump/pg_backup_tar.c
+++ b/src/bin/pg_dump/pg_backup_tar.c
@@ -615,8 +615,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
if (tarWrite(data, dLen, tctx->TH) != dLen)
WRITE_ERROR_EXIT;
-
- return;
}
static void
@@ -818,7 +816,6 @@ _ReadBuf(ArchiveHandle *AH, void *buf, size_t len)
fatal("could not read from input file: end of file");
ctx->filePos += len;
- return;
}
static void
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index bf69adc2f4d..08658c8e860 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -15416,8 +15416,6 @@ dumpTable(Archive *fout, TableInfo *tbinfo)
}
free(namecopy);
-
- return;
}
/*
diff --git a/src/bin/pg_upgrade/parallel.c b/src/bin/pg_upgrade/parallel.c
index 39c508e73b2..22fc7e5e0f9 100644
--- a/src/bin/pg_upgrade/parallel.c
+++ b/src/bin/pg_upgrade/parallel.c
@@ -148,8 +148,6 @@ parallel_exec_prog(const char *log_file, const char *opt_log_file,
thread_handles[parallel_jobs - 1] = child;
#endif
}
-
- return;
}
@@ -263,8 +261,6 @@ parallel_transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
thread_handles[parallel_jobs - 1] = child;
#endif
}
-
- return;
}
diff --git a/src/bin/pg_upgrade/relfilenode.c b/src/bin/pg_upgrade/relfilenode.c
index f9d0812cc5f..9e6013bff14 100644
--- a/src/bin/pg_upgrade/relfilenode.c
+++ b/src/bin/pg_upgrade/relfilenode.c
@@ -73,8 +73,6 @@ transfer_all_new_tablespaces(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
end_progress_output();
check_ok();
-
- return;
}
@@ -128,8 +126,6 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
/* We allocate something even for n_maps == 0 */
pg_free(mappings);
}
-
- return;
}
/*
diff --git a/src/bin/pg_upgrade/tablespace.c b/src/bin/pg_upgrade/tablespace.c
index dfe5bfdcfd5..7f42d1e3c97 100644
--- a/src/bin/pg_upgrade/tablespace.c
+++ b/src/bin/pg_upgrade/tablespace.c
@@ -100,8 +100,6 @@ get_tablespace_paths(void)
PQclear(res);
PQfinish(conn);
-
- return;
}
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index 90f6380170a..53a1ea2bdb9 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -2399,8 +2399,6 @@ expand_tilde(char **filename)
}
}
#endif
-
- return;
}
/*
diff --git a/src/fe_utils/print.c b/src/fe_utils/print.c
index 1f8bde84433..b9cd6a17521 100644
--- a/src/fe_utils/print.c
+++ b/src/fe_utils/print.c
@@ -3619,8 +3619,6 @@ refresh_utf8format(const printTableOpt *opt)
popt->wrap_left = unicode_style.wrap_left;
popt->wrap_right = unicode_style.wrap_right;
popt->wrap_right_border = unicode_style.wrap_right_border;
-
- return;
}
/*
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index d921b974aaf..a7bbeb9223f 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -529,7 +529,6 @@ void
rtoday(date * d)
{
PGTYPESdate_today(d);
- return;
}
int
@@ -959,7 +958,6 @@ rupshift(char *str)
for (; *str != '\0'; str++)
if (islower((unsigned char) *str))
*str = toupper((unsigned char) *str);
- return;
}
int
diff --git a/src/interfaces/ecpg/pgtypeslib/datetime.c b/src/interfaces/ecpg/pgtypeslib/datetime.c
index 71dc1a5ff8b..1b253747fc4 100644
--- a/src/interfaces/ecpg/pgtypeslib/datetime.c
+++ b/src/interfaces/ecpg/pgtypeslib/datetime.c
@@ -152,7 +152,6 @@ PGTYPESdate_today(date * d)
GetCurrentDateTime(&ts);
if (errno == 0)
*d = date2j(ts.tm_year, ts.tm_mon, ts.tm_mday) - date2j(2000, 1, 1);
- return;
}
#define PGTYPES_DATE_NUM_MAX_DIGITS 20 /* should suffice for most
diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c b/src/interfaces/ecpg/pgtypeslib/dt_common.c
index c22f6576740..c1a3a3e2cb7 100644
--- a/src/interfaces/ecpg/pgtypeslib/dt_common.c
+++ b/src/interfaces/ecpg/pgtypeslib/dt_common.c
@@ -624,8 +624,6 @@ j2date(int jd, int *year, int *month, int *day)
quad = julian * 2141 / 65536;
*day = julian - 7834 * quad / 256;
*month = (quad + 10) % 12 + 1;
-
- return;
} /* j2date() */
/* DecodeSpecial()
diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c
index 7816e6fdc05..810dd06ee68 100644
--- a/src/interfaces/ecpg/pgtypeslib/timestamp.c
+++ b/src/interfaces/ecpg/pgtypeslib/timestamp.c
@@ -297,7 +297,6 @@ PGTYPEStimestamp_current(timestamp * ts)
GetCurrentDateTime(&tm);
if (errno == 0)
tm2timestamp(&tm, 0, NULL, ts);
- return;
}
static int
diff --git a/src/interfaces/libpq/fe-auth-scram.c b/src/interfaces/libpq/fe-auth-scram.c
index 741f566a724..3bfcafa1e0a 100644
--- a/src/interfaces/libpq/fe-auth-scram.c
+++ b/src/interfaces/libpq/fe-auth-scram.c
@@ -279,7 +279,6 @@ pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
error:
*done = true;
*success = false;
- return;
}
/*
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c
index 0b224b933cb..c78891868a5 100644
--- a/src/pl/plperl/plperl.c
+++ b/src/pl/plperl/plperl.c
@@ -2147,8 +2147,6 @@ plperl_create_sub(plperl_proc_desc *prodesc, const char *s, Oid fn_oid)
prodesc->proname)));
prodesc->reference = subref;
-
- return;
}
@@ -2388,8 +2386,6 @@ plperl_call_perl_event_trigger_func(plperl_proc_desc *desc,
PUTBACK;
FREETMPS;
LEAVE;
-
- return;
}
static Datum
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c
index 4a9ed83030a..4f0de7a8112 100644
--- a/src/pl/plpgsql/src/pl_exec.c
+++ b/src/pl/plpgsql/src/pl_exec.c
@@ -1189,8 +1189,6 @@ plpgsql_exec_event_trigger(PLpgSQL_function *func, EventTriggerData *trigdata)
* Pop the error context stack
*/
error_context_stack = plerrcontext.previous;
-
- return;
}
/*
diff --git a/src/port/win32error.c b/src/port/win32error.c
index f0582c8dad4..04a3247cefd 100644
--- a/src/port/win32error.c
+++ b/src/port/win32error.c
@@ -205,5 +205,4 @@ _dosmaperr(unsigned long e)
#endif
errno = EINVAL;
- return;
}
diff --git a/src/test/examples/testlo.c b/src/test/examples/testlo.c
index a0c442a549d..5fd40263710 100644
--- a/src/test/examples/testlo.c
+++ b/src/test/examples/testlo.c
@@ -187,8 +187,6 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
lo_close(conn, lobj_fd);
close(fd);
-
- return;
}
static void
diff --git a/src/test/examples/testlo64.c b/src/test/examples/testlo64.c
index 915aa70c862..5faca648562 100644
--- a/src/test/examples/testlo64.c
+++ b/src/test/examples/testlo64.c
@@ -209,8 +209,6 @@ exportFile(PGconn *conn, Oid lobjId, char *filename)
lo_close(conn, lobj_fd);
close(fd);
-
- return;
}
static void