diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-11-03 16:10:23 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-11-03 16:10:56 -0500 |
commit | 4077e9ae150fcf0a8a8a94f50b5bbd304878fbb0 (patch) | |
tree | 08853f5b561be26987b711519e5b30b6454cc7ee | |
parent | 680aabd2f9e88a1cb9e4808682a00ad50c2acf52 (diff) |
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.
-rw-r--r-- | src/backend/tsearch/spell.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/tsearch/spell.c b/src/backend/tsearch/spell.c index 57f24d16613..32f6c5081e9 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; |