From: David Rowley Date: Tue, 30 Mar 2021 07:28:09 +0000 (+1300) Subject: Fix compiler warning in unistr function X-Git-Tag: REL_14_BETA1~426 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=efd9d92bb39c74c2aded64fc08e2d601ce20c39d;p=postgresql.git Fix compiler warning in unistr function Some compilers are not aware that elog/ereport ERROR does not return. --- diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index efc74e8f2d7..0c6e5f24ba1 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -6589,4 +6589,5 @@ invalid_pair: ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), errmsg("invalid Unicode surrogate pair"))); + PG_RETURN_NULL(); /* keep compiler quiet */ }