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: f303ec6)
Fix MSVC warning introduced in ea1db8ae70.
Tue, 4 Apr 2023 22:14:21 +0000 (15:14 -0700)
Tue, 4 Apr 2023 22:43:18 +0000 (15:43 -0700)
Discussion: https://postgr.es/m/CA+hUKGJR1BhCORa5WdvwxztD3arhENcwaN1zEQ1Upg20BwjKWA@mail.gmail.com
Reported-by: Thomas Munro

diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index 06e73aa012f42e056580d00989ba50f48b34af82..1848d42f764d04c27c0d4eb3143473aa2cd6b911 100644 (file)
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -2908,6 +2908,7 @@ icu_language_tag(const char *loc_str, int elevel)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("ICU is not supported in this build")));
+ return NULL; /* keep compiler quiet */
#endif /* not USE_ICU */
}
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 4814c1c4052cdd4a7dcf4e7d3682e99651e30743..e244d930bf9ad9bf479dfc6e8c58dc7d55b9a809 100644 (file)
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2298,6 +2298,7 @@ icu_language_tag(const char *loc_str)
return langtag;
#else
pg_fatal("ICU is not supported in this build");
+ return NULL; /* keep compiler quiet */
#endif
}
This is the main PostgreSQL git repository.
RSS Atom

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