pgsql: Suppress warning from older compilers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Suppress warning from older compilers.
Date: 2019-11-03 21:11:30
Message-ID: E1iRN9m-0005xk-CE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4077e9ae150fcf0a8a8a94f50b5bbd304878fbb0

Modified Files
--------------
src/backend/tsearch/spell.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-11-04 09:37:14 pgsql: Catch invalid typlens in a couple of places
Previous Message Tom Lane 2019-11-03 15:57:55 pgsql: Fix PG_GETARG_SEG_P() definition.