Skip to content

Commit 8ef6961

Browse files
committed
Silence compiler warnings
1 parent 9ee4d06 commit 8ef6961

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ progress_report(int tablespacenum, const char *filename)
435435
ngettext("%*s/%s kB (100%%), %d/%d tablespace %*s",
436436
"%*s/%s kB (100%%), %d/%d tablespaces %*s",
437437
tablespacecount),
438-
strlen(totalsize_str),
438+
(int) strlen(totalsize_str),
439439
totaldone_str, totalsize_str,
440440
tablespacenum, tablespacecount,
441441
VERBOSE_FILENAME_LENGTH + 5, "");
@@ -447,7 +447,7 @@ progress_report(int tablespacenum, const char *filename)
447447
ngettext("%*s/%s kB (%d%%), %d/%d tablespace (%s%-*.*s)",
448448
"%*s/%s kB (%d%%), %d/%d tablespaces (%s%-*.*s)",
449449
tablespacecount),
450-
strlen(totalsize_str),
450+
(int) strlen(totalsize_str),
451451
totaldone_str, totalsize_str, percent,
452452
tablespacenum, tablespacecount,
453453
/* Prefix with "..." if we do leading truncation */
@@ -463,7 +463,7 @@ progress_report(int tablespacenum, const char *filename)
463463
ngettext("%*s/%s kB (%d%%), %d/%d tablespace",
464464
"%*s/%s kB (%d%%), %d/%d tablespaces",
465465
tablespacecount),
466-
strlen(totalsize_str),
466+
(int) strlen(totalsize_str),
467467
totaldone_str, totalsize_str, percent,
468468
tablespacenum, tablespacecount);
469469

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