diff options
author | unknown <lenz@mysql.com> | 2005-01-11 15:38:03 +0100 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2005-01-11 15:38:03 +0100 |
commit | c9079c1340b6d54be5e3e4323c71d54e264ba588 (patch) | |
tree | 946ba196628eebc265f7596a2b342d1c73f2be3c /sql/strfunc.cc | |
parent | cc1c4a99ef3f0f6b2bcd3861a91416f3e509d5d7 (diff) | |
download | mariadb-git-c9079c1340b6d54be5e3e4323c71d54e264ba588.tar.gz |
- Housekeeping: removed a few unreferenced variables, noticed while doing
Windows builds
sql/sql_base.cc:
- removed an unreferenced variable
sql/strfunc.cc:
- removed an unreferenced variable
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 3ad6b1155d1..81aca092cec 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,findpos; + int find,pos; const char *j; DBUG_ENTER("find_type2"); DBUG_PRINT("enter",("x: '%s' lib: 0x%lx",x,typelib)); @@ -157,7 +157,7 @@ uint find_type2(TYPELIB *typelib, const char *x, uint length, CHARSET_INFO *cs) DBUG_PRINT("exit",("no count")); DBUG_RETURN(0); } - LINT_INIT(findpos); + for (find=0, pos=0 ; (j=typelib->type_names[pos]) ; pos++) { if (!my_strnncoll(cs, (const uchar*) x, length, |