Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90317ab

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 thisissue.Author: Michael PaquierReviewed-by: Andrew DunstanDiscussion:https://postgr.es/m/20190719050830.GK1859@paquier.xyz
1 parent3373c71 commit90317ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 4 additions & 0 deletions
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+
#ifndefWIN32
14481449
intfilemode;
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+
#ifndefWIN32
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)

[8]ページ先頭

©2009-2025 Movatter.jp