summaryrefslogtreecommitdiff
path: root/sql/sql_analyse.cc
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2009-06-10 16:04:07 +0200
committerStaale Smedseng <staale.smedseng@sun.com>2009-06-10 16:04:07 +0200
commita10350978814ec7f7ba7e64f6615847e0311cc69 (patch)
treeac0c8cc9c36841305e8b1568add202c95b44a9fa /sql/sql_analyse.cc
parenta073ee45c290d81d365b48b03ef6924e778cd64f (diff)
downloadmariadb-git-a10350978814ec7f7ba7e64f6615847e0311cc69.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_analyse.cc')
-rw-r--r--sql/sql_analyse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_analyse.cc b/sql/sql_analyse.cc
index 4b3264069b5..7de395d8d91 100644
--- a/sql/sql_analyse.cc
+++ b/sql/sql_analyse.cc
@@ -247,7 +247,7 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len)
}
DBUG_RETURN(0);
}
- for (str++; *(end - 1) == '0'; end--); // jump over zeros at the end
+ for (str++; *(end - 1) == '0'; end--) ; // jump over zeros at the end
if (str == end) // number was something like '123.000'
{
char *endpos= (char*) str;