Content-Length: 251512 | pFad | http://github.com/postgrespro/postgres/commit/efd9d92bb39c74c2aded64fc08e2d601ce20c39d

7D Fix compiler warning in unistr function · postgrespro/postgres@efd9d92 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/efd9d92bb39c74c2aded64fc08e2d601ce20c39d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy