postgres.git / summary / log / commit / refs

commit    36320cbc164a8bc069f7a2d3990f47f5629f2020
Author:   Jeff Davis <jdavis@postgresql.org>
Date:     Tue Apr 04 22:14:21 2023 +0000
First released in: 16.0

    Fix MSVC warning introduced in ea1db8ae70.
    
    Discussion: https://postgr.es/m/CA+hUKGJR1BhCORa5WdvwxztD3arhENcwaN1zEQ1Upg20BwjKWA@mail.gmail.com
    Reported-by: Thomas Munro


src/backend/utils/adt/pg_locale.c | 1 + src/bin/initdb/initdb.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index 06e73aa012f..1848d42f764 100644 --- 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 4814c1c4052..e244d930bf9 100644 --- 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 } [parent: f303ec6210c4]