summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <jani@ua141d10.elisa.omakaista.fi>2005-10-18 18:03:26 +0300
committerunknown <jani@ua141d10.elisa.omakaista.fi>2005-10-18 18:03:26 +0300
commitc0eae8f0a1127ab29631103632c702e6d634fc09 (patch)
treededf1965e0d97e9ca4d30f9e0558ea9af42fb064 /strings
parent3867a5db376cf225403116c26eaa8c73e4c9b359 (diff)
downloadmariadb-git-c0eae8f0a1127ab29631103632c702e6d634fc09.tar.gz
Some fixes to avoid compiler warnings.
mysql-test/my_manage.c: Avoid warning: i not used in case of Windows. mysql-test/mysql_test_run_new.c: Removed unused variable. sql/item_func.cc: Removed unused variables. strings/ctype-simple.c: Added cast. strings/ctype-ucs2.c: Added cast.
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-simple.c2
-rw-r--r--strings/ctype-ucs2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c
index efddab621f2..095b2f3a4ac 100644
--- a/strings/ctype-simple.c
+++ b/strings/ctype-simple.c
@@ -867,7 +867,7 @@ int my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
while (long_val != 0)
{
long quo= long_val/10;
- *--p = '0' + (long_val - quo*10);
+ *--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}
diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c
index 56c05635300..ad07fd9903c 100644
--- a/strings/ctype-ucs2.c
+++ b/strings/ctype-ucs2.c
@@ -1043,7 +1043,7 @@ int my_ll10tostr_ucs2(CHARSET_INFO *cs __attribute__((unused)),
while (long_val != 0)
{
long quo= long_val/10;
- *--p = '0' + (long_val - quo*10);
+ *--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}