postgres.git / summary / log / commit / refs
commit 88d03d73c22440763dbe85378fdda8389db78b0d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sun Nov 03 21:10:23 2019 +0000
First released in: 13.0, 9.6.16, 10.11, 11.6, 12.1
Suppress warning from older compilers.
Commit 8af1624e3 introduced a warning about possibly returning
without a value, on compilers that don't realize that ereport(ERROR)
doesn't return. Tweak the code to avoid that.
Per buildfarm. Back-patch to 9.6, like the aforesaid commit.
src/backend/tsearch/spell.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/backend/tsearch/spell.c b/src/backend/tsearch/spell.c
index 8d8b6e4766f..997aa509af1 100644
--- a/src/backend/tsearch/spell.c
+++ b/src/backend/tsearch/spell.c
@@ -1173,8 +1173,7 @@ getAffixFlagSet(IspellDict *Conf, char *s)
ereport(ERROR,
(errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("invalid affix alias \"%s\"", s)));
- else
- return VoidString;
+ return VoidString;
}
else
return s;
[parent: 65cdf8bc1be4]