Skip to content

Commit efd9d92

Browse files
committed
Fix compiler warning in unistr function
Some compilers are not aware that elog/ereport ERROR does not return.
1 parent ff53d7b commit efd9d92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/utils/adt/varlena.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6589,4 +6589,5 @@ unistr(PG_FUNCTION_ARGS)
65896589
ereport(ERROR,
65906590
(errcode(ERRCODE_SYNTAX_ERROR),
65916591
errmsg("invalid Unicode surrogate pair")));
6592+
PG_RETURN_NULL(); /* keep compiler quiet */
65926593
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy