diff options
author | monty@mysql.com <> | 2005-02-25 16:53:22 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-02-25 16:53:22 +0200 |
commit | 0a6b7aedb2cec716b98349765bfa369354787b25 (patch) | |
tree | 9b48fa5a8476d449ea4512314b86f9704517cd0c /sql/strfunc.cc | |
parent | cd78e701a5c83394c360f6ba9a1783c7b950e8ee (diff) | |
download | mariadb-git-0a6b7aedb2cec716b98349765bfa369354787b25.tar.gz |
Remove compiler warnings and remove not used variables
(Found during build process)
Diffstat (limited to 'sql/strfunc.cc')
-rw-r--r-- | sql/strfunc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/strfunc.cc b/sql/strfunc.cc index ca1a4b64af9..c822d10af46 100644 --- a/sql/strfunc.cc +++ b/sql/strfunc.cc @@ -147,7 +147,7 @@ uint find_type(TYPELIB *lib, const char *find, uint length, bool part_match) uint find_type2(TYPELIB *typelib, const char *x, uint length, CHARSET_INFO *cs) { - int find,pos; + int pos; const char *j; DBUG_ENTER("find_type2"); DBUG_PRINT("enter",("x: '%.*s' lib: 0x%lx", length, x, typelib)); @@ -158,7 +158,7 @@ uint find_type2(TYPELIB *typelib, const char *x, uint length, CHARSET_INFO *cs) DBUG_RETURN(0); } - for (find=0, pos=0 ; (j=typelib->type_names[pos]) ; pos++) + for (pos=0 ; (j=typelib->type_names[pos]) ; pos++) { if (!my_strnncoll(cs, (const uchar*) x, length, (const uchar*) j, typelib->type_lengths[pos])) |