Commit 7d0b8b5e authored by Vasil Dimov's avatar Vasil Dimov

(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6

Fix compiler warning:
handler/ha_innodb.cc: In function 'void innobase_drop_database(handlerton*, char*)':
handler/ha_innodb.cc:7010:6: error: variable 'error' set but not used [-Werror=unused-but-set-variable]
parent 7ed6878c
...@@ -7007,7 +7007,6 @@ innobase_drop_database( ...@@ -7007,7 +7007,6 @@ innobase_drop_database(
ulint len = 0; ulint len = 0;
trx_t* trx; trx_t* trx;
char* ptr; char* ptr;
int error;
char* namebuf; char* namebuf;
THD* thd = current_thd; THD* thd = current_thd;
...@@ -7050,7 +7049,7 @@ innobase_drop_database( ...@@ -7050,7 +7049,7 @@ innobase_drop_database(
#else #else
trx = innobase_trx_allocate(thd); trx = innobase_trx_allocate(thd);
#endif #endif
error = row_drop_database_for_mysql(namebuf, trx); row_drop_database_for_mysql(namebuf, trx);
my_free(namebuf, MYF(0)); my_free(namebuf, MYF(0));
/* Flush the log to reduce probability that the .frm files and /* Flush the log to reduce probability that the .frm files and
......
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