Commit a0a59294 authored by Marko Mäkelä's avatar Marko Mäkelä

trx_undo_parse_page_header(): Silence a bogus warning.

parent 1ae7da65
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment