Skip to content

Commit ded7b7b

Browse files
committed
Silence more compiler warnings introduced by d87d548.
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.
1 parent 18f2f8b commit ded7b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ pg_strxfrm_enabled(pg_locale_t locale)
23222322
size_t
23232323
pg_strxfrm(char *dest, const char *src, size_t destsize, pg_locale_t locale)
23242324
{
2325-
size_t result;
2325+
size_t result = 0; /* keep compiler quiet */
23262326

23272327
if (!locale || locale->provider == COLLPROVIDER_LIBC)
23282328
result = pg_strxfrm_libc(dest, src, destsize, locale);
@@ -2359,7 +2359,7 @@ size_t
23592359
pg_strnxfrm(char *dest, size_t destsize, const char *src, size_t srclen,
23602360
pg_locale_t locale)
23612361
{
2362-
size_t result;
2362+
size_t result = 0; /* keep compiler quiet */
23632363

23642364
if (!locale || locale->provider == COLLPROVIDER_LIBC)
23652365
result = pg_strnxfrm_libc(dest, src, srclen, destsize, locale);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy