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 second patch, fixing more of the warnings.
This commit is contained in:
@ -116,12 +116,12 @@ struct MBR
|
||||
int touches(const MBR *mbr)
|
||||
{
|
||||
/* The following should be safe, even if we compare doubles */
|
||||
return ((((mbr->xmin == xmax) || (mbr->xmax == xmin)) &&
|
||||
((mbr->ymin >= ymin) && (mbr->ymin <= ymax) ||
|
||||
(mbr->ymax >= ymin) && (mbr->ymax <= ymax))) ||
|
||||
return ((((mbr->xmin == xmax) || (mbr->xmax == xmin)) &&
|
||||
(((mbr->ymin >= ymin) && (mbr->ymin <= ymax)) ||
|
||||
((mbr->ymax >= ymin) && (mbr->ymax <= ymax)))) ||
|
||||
(((mbr->ymin == ymax) || (mbr->ymax == ymin)) &&
|
||||
((mbr->xmin >= xmin) && (mbr->xmin <= xmax) ||
|
||||
(mbr->xmax >= xmin) && (mbr->xmax <= xmax))));
|
||||
(((mbr->xmin >= xmin) && (mbr->xmin <= xmax)) ||
|
||||
((mbr->xmax >= xmin) && (mbr->xmax <= xmax)))));
|
||||
}
|
||||
|
||||
int within(const MBR *mbr)
|
||||
|
Reference in New Issue
Block a user