projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568620d
)
Silence uninitialized-variable warning.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 7 Nov 2021 17:18:18 +0000
(12:18 -0500)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 7 Nov 2021 17:18:18 +0000
(12:18 -0500)
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
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index 7b1b3e802bb7b8222e75ad3ff318ceab4fa5bc9b..5cda30836f8f8edc862750ea03565e855ce23667 100644
(file)
--- a/
src/backend/access/transam/xlog.c
+++ b/
src/backend/access/transam/xlog.c
@@
-12109,6
+12109,9
@@
read_backup_label(XLogRecPtr *checkPointLoc, TimeLineID *backupLabelTLI,
uint32 hi,
lo;
+ /* suppress possible uninitialized-variable warnings */
+ *checkPointLoc = InvalidXLogRecPtr;
+ *backupLabelTLI = 0;
*backupEndRequired = false;
*backupFromStandby = false;