Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 90317ab

Browse files
committed
Fix compilation warning of pg_basebackup with MinGW
Several buildfarm members have been complaining about that with gcc, like jacana. Weirdly enough, Visual Studio's compilers do not find this issue. Author: Michael Paquier Reviewed-by: Andrew Dunstan Discussion: https://postgr.es/m/20190719050830.GK1859@paquier.xyz
1 parent 3373c71 commit 90317ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_basebackup/pg_basebackup.c

+4
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,9 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
14451445

14461446
if (file == NULL)
14471447
{
1448+
#ifndef WIN32
14481449
int filemode;
1450+
#endif
14491451

14501452
/*
14511453
* No current file, so this must be the header for a new file
@@ -1459,8 +1461,10 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
14591461

14601462
current_len_left = read_tar_number(&copybuf[124], 12);
14611463

1464+
#ifndef WIN32
14621465
/* Set permissions on the file */
14631466
filemode = read_tar_number(&copybuf[100], 8);
1467+
#endif
14641468

14651469
/*
14661470
* All files are padded up to 512 bytes

0 commit comments

Comments
 (0)