Commit 75fad9dc authored by Michael Widenius's avatar Michael Widenius

Fixed compiler warnings

parent f2ca9c87
...@@ -1012,8 +1012,9 @@ vi_histedit(EditLine *el, int c __attribute__((__unused__))) ...@@ -1012,8 +1012,9 @@ vi_histedit(EditLine *el, int c __attribute__((__unused__)))
if (fd < 0) if (fd < 0)
return CC_ERROR; return CC_ERROR;
cp = el->el_line.buffer; cp = el->el_line.buffer;
write(fd, cp, el->el_line.lastchar - cp +0u); if (write(fd, cp, el->el_line.lastchar - cp +0u) == -1 ||
write(fd, "\n", 1); write(fd, "\n", 1) == -1)
return CC_ERROR;
pid = fork(); pid = fork();
switch (pid) { switch (pid) {
case -1: case -1:
......
...@@ -2196,7 +2196,7 @@ buf_page_get_gen( ...@@ -2196,7 +2196,7 @@ buf_page_get_gen(
ulint fix_type; ulint fix_type;
ibool must_read; ibool must_read;
ulint retries = 0; ulint retries = 0;
mutex_t* block_mutex; mutex_t* block_mutex= 0;
trx_t* trx = NULL; trx_t* trx = NULL;
ulint sec; ulint sec;
ulint ms; ulint ms;
......
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