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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy