summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2010-06-24 10:21:40 +0300
committerMarko Mäkelä <marko.makela@oracle.com>2010-06-24 10:21:40 +0300
commit2ad32ccf795a7f65c7c44b066e1eb10b2e51501a (patch)
treeb1646aaf5fc95dfb20119322aee859c49e985459 /storage
parent0c5a717d8eb2bb63e8b51c06e49bddb5235bc646 (diff)
downloadmariadb-git-2ad32ccf795a7f65c7c44b066e1eb10b2e51501a.tar.gz
trx_undo_parse_page_header(): Silence a bogus warning.
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/trx/trx0undo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/innobase/trx/trx0undo.c b/storage/innobase/trx/trx0undo.c
index 3689f5ebdad..90fc98f419d 100644
--- a/storage/innobase/trx/trx0undo.c
+++ b/storage/innobase/trx/trx0undo.c
@@ -707,6 +707,12 @@ trx_undo_parse_page_header(
mtr_t* mtr) /*!< in: mtr or NULL */
{
trx_id_t trx_id;
+ /* Silence a GCC warning about possibly uninitialized variable
+ when mach_ull_parse_compressed() is not inlined. */
+ ut_d(trx_id = 0);
+ /* Declare the variable uninitialized in Valgrind, so that the
+ above initialization will not mask any bugs. */
+ UNIV_MEM_INVALID(&trx_id, sizeof trx_id);
ptr = mach_ull_parse_compressed(ptr, end_ptr, &trx_id);