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

Fix a compiler warning about possibly uninitiaizlied variable.

parent 76e064e2
......@@ -301,10 +301,9 @@ btr_pcur_restore_position(
case BTR_PCUR_BEFORE:
mode = PAGE_CUR_L;
break;
#ifdef UNIV_DEBUG
default:
ut_error;
#endif /* UNIV_DEBUG */
mode = 0; /* silence a warning */
}
btr_pcur_open_with_no_init(index, tuple, mode, latch_mode,
......
......@@ -325,10 +325,9 @@ btr_pcur_restore_position_func(
case BTR_PCUR_BEFORE:
mode = PAGE_CUR_L;
break;
#ifdef UNIV_DEBUG
default:
ut_error;
#endif /* UNIV_DEBUG */
mode = 0;
}
btr_pcur_open_with_no_init_func(index, tuple, mode, latch_mode,
......
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