diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2009-06-17 15:54:01 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2009-06-17 15:54:01 +0200 |
commit | 3b0e6e41098557dab9fe7ca5c59f2863fd671b94 (patch) | |
tree | b8fb3c1fb387986cd39d4dc291845cd51d2796e5 /sql/sql_prepare.cc | |
parent | 689901f36f13b0ad5fe908998625493814ed33fa (diff) | |
download | mariadb-git-3b0e6e41098557dab9fe7ca5c59f2863fd671b94.tar.gz |
Bug #43414 Parenthesis (and other) warnings compiling MySQL
with gcc 4.3.2
Compiling MySQL with gcc 4.3.2 and later produces a number of
warnings, many of which are new with the recent compiler
versions.
This bug will be resolved in more than one patch to limit the
size of changesets. This is the second patch, fixing more
of the warnings.
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index a20f61436a7..d14f14b526e 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -1367,7 +1367,7 @@ static bool mysql_test_set_fields(Prepared_statement *stmt, THD *thd= stmt->thd; set_var_base *var; - if (tables && check_table_access(thd, SELECT_ACL, tables, 0) || + if ((tables && check_table_access(thd, SELECT_ACL, tables, 0)) || open_and_lock_tables(thd, tables)) goto error; @@ -2714,7 +2714,7 @@ Prepared_statement::Prepared_statement(THD *thd_arg, Protocol *protocol_arg) void Prepared_statement::setup_set_params() { /* Setup binary logging */ - if (mysql_bin_log.is_open() && is_update_query(lex->sql_command) || + if ((mysql_bin_log.is_open() && is_update_query(lex->sql_command)) || mysql_log.is_open() || mysql_slow_log.is_open()) { set_params_from_vars= insert_params_from_vars_with_log; |