aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-11-03 16:10:23 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-11-03 16:10:23 -0500
commitdb27b60f07a039e236738fe90bd4215cafd35cf2 (patch)
tree6642fa4839c16f41ce64bf613cda28b83fda2c35 /src
parent741b1aaf61a3da10250555f827c0a7a2f9bc2822 (diff)
downloadpostgresql-db27b60f07a039e236738fe90bd4215cafd35cf2.tar.gz
postgresql-db27b60f07a039e236738fe90bd4215cafd35cf2.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/tsearch/spell.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/tsearch/spell.c b/src/backend/tsearch/spell.c
index 1b8766659c4..abc31cb356d 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;