mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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 first patch, fixing a number of the warnings, predominantly "suggest using parentheses around && in ||", and empty for and while bodies.
This commit is contained in:
@ -690,8 +690,8 @@ static bool matching_cond(bool max_fl, TABLE_REF *ref, KEY *keyinfo,
|
||||
}
|
||||
else if (eq_type)
|
||||
{
|
||||
if (!is_null && !cond->val_int() ||
|
||||
is_null && !test(part->field->is_null()))
|
||||
if ((!is_null && !cond->val_int()) ||
|
||||
(is_null && !test(part->field->is_null())))
|
||||
return 0; // Impossible test
|
||||
}
|
||||
else if (is_field_part)
|
||||
|
Reference in New Issue
Block a user