mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Silence more compiler warnings introduced by d87d548cd0
.
Per buildfarm, there are still a couple of functions where we get warnings from compilers that don't know that elog(ERROR) doesn't return.
This commit is contained in:
@ -2322,7 +2322,7 @@ pg_strxfrm_enabled(pg_locale_t locale)
|
|||||||
size_t
|
size_t
|
||||||
pg_strxfrm(char *dest, const char *src, size_t destsize, pg_locale_t locale)
|
pg_strxfrm(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)
|
if (!locale || locale->provider == COLLPROVIDER_LIBC)
|
||||||
result = pg_strxfrm_libc(dest, src, destsize, locale);
|
result = pg_strxfrm_libc(dest, src, destsize, locale);
|
||||||
@ -2359,7 +2359,7 @@ size_t
|
|||||||
pg_strnxfrm(char *dest, size_t destsize, const char *src, size_t srclen,
|
pg_strnxfrm(char *dest, size_t destsize, const char *src, size_t srclen,
|
||||||
pg_locale_t locale)
|
pg_locale_t locale)
|
||||||
{
|
{
|
||||||
size_t result;
|
size_t result = 0; /* keep compiler quiet */
|
||||||
|
|
||||||
if (!locale || locale->provider == COLLPROVIDER_LIBC)
|
if (!locale || locale->provider == COLLPROVIDER_LIBC)
|
||||||
result = pg_strnxfrm_libc(dest, src, srclen, destsize, locale);
|
result = pg_strnxfrm_libc(dest, src, srclen, destsize, locale);
|
||||||
|
Reference in New Issue
Block a user