Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit db27b60

Browse files
committed
Suppress warning from older compilers.
Commit 8af1624 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.
1 parent 741b1aa commit db27b60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/tsearch/spell.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1173,8 +1173,7 @@ getAffixFlagSet(IspellDict *Conf, char *s)
11731173
ereport(ERROR,
11741174
(errcode(ERRCODE_CONFIG_FILE_ERROR),
11751175
errmsg("invalid affix alias \"%s\"", s)));
1176-
else
1177-
return VoidString;
1176+
return VoidString;
11781177
}
11791178
else
11801179
return s;

0 commit comments

Comments
 (0)