Fix MSVC warning introduced in ea1db8ae70.
authorJeff Davis <[email protected]>
Tue, 4 Apr 2023 22:14:21 +0000 (15:14 -0700)
committerJeff Davis <[email protected]>
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
src/backend/utils/adt/pg_locale.c
src/bin/initdb/initdb.c

index 06e73aa012f42e056580d00989ba50f48b34af82..1848d42f764d04c27c0d4eb3143473aa2cd6b911 100644 (file)
@@ -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 */
 }
 
index 4814c1c4052cdd4a7dcf4e7d3682e99651e30743..e244d930bf9ad9bf479dfc6e8c58dc7d55b9a809 100644 (file)
@@ -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
 }