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

Commitc3ec4f8

Browse files
committed
Silence uninitialized-variable warning.
Quite a few buildfarm animals are warning about this, and lapwingis actually failing (because -Werror). It's a false positive AFAICS,so no need to do more than zero the variable to start with.Discussion:https://postgr.es/m/YYXJnUxgw9dZKxlX@paquier.xyz
1 parent568620d commitc3ec4f8

File tree

1 file changed

+3
-0
lines changed
  • src/backend/access/transam

1 file changed

+3
-0
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12109,6 +12109,9 @@ read_backup_label(XLogRecPtr *checkPointLoc, TimeLineID *backupLabelTLI,
1210912109
uint32hi,
1211012110
lo;
1211112111

12112+
/* suppress possible uninitialized-variable warnings */
12113+
*checkPointLoc=InvalidXLogRecPtr;
12114+
*backupLabelTLI=0;
1211212115
*backupEndRequired= false;
1211312116
*backupFromStandby= false;
1211412117

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp