git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ff53d7b)
Fix compiler warning in unistr function
2021年3月30日 07:28:09 +0000 (20:28 +1300)
2021年3月30日 07:28:09 +0000 (20:28 +1300)
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 efc74e8f2d70fb46ac57046eed88dfd3d8eb2003..0c6e5f24ba1f94b3f55a0ca5f65755235e1d1966 100644 (file)
--- 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 */
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /