diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-22 12:27:50 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-22 12:27:50 -0400 |
commit | 4912385b56afe68ef76e47d38df1d61ada0fde2f (patch) | |
tree | 14b2b94fb2603cebd2a54f126376bf07f553f53a | |
parent | 82b945c0979350c87ddc52adefe9f0a36dd5b4c8 (diff) | |
download | postgresql-4912385b56afe68ef76e47d38df1d61ada0fde2f.tar.gz postgresql-4912385b56afe68ef76e47d38df1d61ada0fde2f.zip |
Suppress uninitialized-variable warning in new checksum code.
Some compilers understand that this coding is safe, and some don't.
-rw-r--r-- | src/backend/storage/page/bufpage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/page/bufpage.c b/src/backend/storage/page/bufpage.c index 81cdc6547a3..326d3de8889 100644 --- a/src/backend/storage/page/bufpage.c +++ b/src/backend/storage/page/bufpage.c @@ -84,7 +84,7 @@ PageIsVerified(Page page, BlockNumber blkno) bool checksum_failure = false; bool header_sane = false; bool all_zeroes = false; - uint16 checksum; + uint16 checksum = 0; /* * Don't verify page data unless the page passes basic non-zero test |