diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2009-06-09 14:55:30 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2009-06-09 14:55:30 +0200 |
commit | 53d9b3d92d5cc114d449b47b9c7a0b4a6c7bb2b3 (patch) | |
tree | 6cee8c2084e348d45fc326e9557d2f4148c4ab1a /sql/gstream.cc | |
parent | e43d8e584d76aa646dd0a88cbb4b85b20fffe37c (diff) | |
download | mariadb-git-53d9b3d92d5cc114d449b47b9c7a0b4a6c7bb2b3.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 first patch, fixing a number
of the warnings, predominantly "suggest using parentheses
around && in ||", and empty for and while bodies.
Diffstat (limited to 'sql/gstream.cc')
-rw-r--r-- | sql/gstream.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/gstream.cc b/sql/gstream.cc index 0c8011549f3..e2bb41b8541 100644 --- a/sql/gstream.cc +++ b/sql/gstream.cc @@ -75,7 +75,7 @@ bool Gis_read_stream::get_next_number(double *d) skip_space(); if ((m_cur >= m_limit) || - (*m_cur < '0' || *m_cur > '9') && *m_cur != '-' && *m_cur != '+') + ((*m_cur < '0' || *m_cur > '9') && *m_cur != '-' && *m_cur != '+')) { set_error_msg("Numeric constant expected"); return 1; |