From: Tom Lane Date: Fri, 22 Mar 2013 16:27:50 +0000 (-0400) Subject: Suppress uninitialized-variable warning in new checksum code. X-Git-Tag: REL9_3_BETA1~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4912385b56afe68ef76e47d38df1d61ada0fde2f;p=postgresql Suppress uninitialized-variable warning in new checksum code. Some compilers understand that this coding is safe, and some don't. --- diff --git a/src/backend/storage/page/bufpage.c b/src/backend/storage/page/bufpage.c index 81cdc6547a..326d3de888 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