Skip to content

Commit c3ec4f8

Browse files
committed
Silence uninitialized-variable warning.
Quite a few buildfarm animals are warning about this, and lapwing is 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 parent 568620d commit c3ec4f8

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

+3
Original file line numberDiff line numberDiff line change
@@ -12109,6 +12109,9 @@ read_backup_label(XLogRecPtr *checkPointLoc, TimeLineID *backupLabelTLI,
1210912109
uint32 hi,
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)