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

Fix a compiler warning about possibly uninitiaizlied variable.

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