Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-3
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)