Commit ac67443a authored by Vasil Dimov's avatar Vasil Dimov

(os0file.c:1485) Bug#55227 Fix compiler warnings in innodb with gcc 4.6

parent b69c8895
...@@ -1482,7 +1482,6 @@ os_file_create_func( ...@@ -1482,7 +1482,6 @@ os_file_create_func(
int create_flag; int create_flag;
ibool retry; ibool retry;
const char* mode_str = NULL; const char* mode_str = NULL;
const char* type_str = NULL;
try_again: try_again:
ut_a(name); ut_a(name);
...@@ -1502,14 +1501,7 @@ os_file_create_func( ...@@ -1502,14 +1501,7 @@ os_file_create_func(
ut_error; ut_error;
} }
if (type == OS_LOG_FILE) { ut_a(type == OS_LOG_FILE || type == OS_DATA_FILE);
type_str = "LOG";
} else if (type == OS_DATA_FILE) {
type_str = "DATA";
} else {
ut_error;
}
ut_a(purpose == OS_FILE_AIO || purpose == OS_FILE_NORMAL); ut_a(purpose == OS_FILE_AIO || purpose == OS_FILE_NORMAL);
#ifdef O_SYNC #ifdef O_SYNC
......
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