Silence compiler warnings introduced by d87d548cd0.

Reported-by: Justin Pryzby
Discussion: https://postgr.es/m/20230224002029.GQ1653@telsasoft.com
This commit is contained in:
Jeff Davis 2023-02-24 09:11:35 -08:00
parent 62d56f6720
commit 05fc551796
1 changed files with 7 additions and 2 deletions

View File

@ -2105,6 +2105,7 @@ pg_strxfrm_libc(char *dest, const char *src, size_t destsize,
#else
/* shouldn't happen */
elog(ERROR, "unsupported collprovider: %c", locale->provider);
return 0; /* keep compiler quiet */
#endif
}
@ -2300,6 +2301,8 @@ pg_strxfrm_enabled(pg_locale_t locale)
else
/* shouldn't happen */
elog(ERROR, "unsupported collprovider: %c", locale->provider);
return false; /* keep compiler quiet */
}
/*
@ -2385,6 +2388,8 @@ pg_strxfrm_prefix_enabled(pg_locale_t locale)
else
/* shouldn't happen */
elog(ERROR, "unsupported collprovider: %c", locale->provider);
return false; /* keep compiler quiet */
}
/*
@ -2404,7 +2409,7 @@ size_t
pg_strxfrm_prefix(char *dest, const char *src, size_t destsize,
pg_locale_t locale)
{
size_t result;
size_t result = 0; /* keep compiler quiet */
if (!locale || locale->provider == COLLPROVIDER_LIBC)
elog(ERROR, "collprovider '%c' does not support pg_strxfrm_prefix()",
@ -2441,7 +2446,7 @@ size_t
pg_strnxfrm_prefix(char *dest, size_t destsize, const char *src,
size_t srclen, pg_locale_t locale)
{
size_t result;
size_t result = 0; /* keep compiler quiet */
if (!locale || locale->provider == COLLPROVIDER_LIBC)
elog(ERROR, "collprovider '%c' does not support pg_strnxfrm_prefix()",