Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 36320cb

Browse files
committed
Fix MSVC warning introduced in ea1db8a.
Discussion: https://postgr.es/m/CA+hUKGJR1BhCORa5WdvwxztD3arhENcwaN1zEQ1Upg20BwjKWA@mail.gmail.com Reported-by: Thomas Munro
1 parent f303ec6 commit 36320cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/backend/utils/adt/pg_locale.c

+1
Original file line numberDiff line numberDiff line change
@@ -2908,6 +2908,7 @@ icu_language_tag(const char *loc_str, int elevel)
29082908
ereport(ERROR,
29092909
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
29102910
errmsg("ICU is not supported in this build")));
2911+
return NULL; /* keep compiler quiet */
29112912
#endif /* not USE_ICU */
29122913
}
29132914

src/bin/initdb/initdb.c

+1
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,7 @@ icu_language_tag(const char *loc_str)
22982298
return langtag;
22992299
#else
23002300
pg_fatal("ICU is not supported in this build");
2301+
return NULL; /* keep compiler quiet */
23012302
#endif
23022303
}
23032304

0 commit comments

Comments
 (0)