mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
(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]
This commit is contained in:
parent
7ed6878c6d
commit
7d0b8b5e5f
1 changed files with 1 additions and 2 deletions
|
|
@ -7007,7 +7007,6 @@ innobase_drop_database(
|
|||
ulint len = 0;
|
||||
trx_t* trx;
|
||||
char* ptr;
|
||||
int error;
|
||||
char* namebuf;
|
||||
THD* thd = current_thd;
|
||||
|
||||
|
|
@ -7050,7 +7049,7 @@ innobase_drop_database(
|
|||
#else
|
||||
trx = innobase_trx_allocate(thd);
|
||||
#endif
|
||||
error = row_drop_database_for_mysql(namebuf, trx);
|
||||
row_drop_database_for_mysql(namebuf, trx);
|
||||
my_free(namebuf, MYF(0));
|
||||
|
||||
/* Flush the log to reduce probability that the .frm files and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue