diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2010-01-28 19:51:40 -0200 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2010-01-28 19:51:40 -0200 |
commit | b5d307e85cdcb3a25d3ab4599836331c10927633 (patch) | |
tree | 0983a14bd3f5e154dd9ef33de7eb71f9b90ce8b7 /sql/sql_db.cc | |
parent | a5618bfa15f0c37d44836c5c20a84ff98be3914d (diff) | |
download | mariadb-git-b5d307e85cdcb3a25d3ab4599836331c10927633.tar.gz |
Fix for compiler warnings:
Rename method as to not hide a base.
Reorder attributes initialization.
Remove unused variable.
Rework code to silence a warning due to assignment used as truth value.
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index d5d9830f63d..0e65f97e10b 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -828,7 +828,7 @@ bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info) qinfo.db_len = strlen(db); /* These DDL methods and logging protected with LOCK_mysql_create_db */ - if (error= mysql_bin_log.write(&qinfo)) + if ((error= mysql_bin_log.write(&qinfo))) goto exit; } my_ok(thd, result); |