summaryrefslogtreecommitdiff
path: root/strings/ctype-gb2312.c
diff options
context:
space:
mode:
authorbar@gw.udmsearch.izhnet.ru <>2002-03-29 16:06:06 +0400
committerbar@gw.udmsearch.izhnet.ru <>2002-03-29 16:06:06 +0400
commit0300bac68a5ab9c5b00d6fe59a1f9872297a0de3 (patch)
treed444c80b3c0ba33ab823c67eb8b92c2d59ab58e7 /strings/ctype-gb2312.c
parentd17fd20201afc68350293ff7f8f08e2bf47562d2 (diff)
downloadmariadb-git-0300bac68a5ab9c5b00d6fe59a1f9872297a0de3.tar.gz
charset<->unicode conversion tables and routines
some warnings fixes
Diffstat (limited to 'strings/ctype-gb2312.c')
-rw-r--r--strings/ctype-gb2312.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/strings/ctype-gb2312.c b/strings/ctype-gb2312.c
index 96ad352a97e..556bae0747c 100644
--- a/strings/ctype-gb2312.c
+++ b/strings/ctype-gb2312.c
@@ -166,17 +166,18 @@ uchar NEAR sort_order_gb2312[]=
#define isgb2312tail(c) (0xa1<=(uchar)(c) && (uchar)(c)<=0xfe)
-int ismbchar_gb2312(CHARSET_INFO *cs,const char* p, const char *e)
+int ismbchar_gb2312(CHARSET_INFO *cs __attribute__((unused)),
+ const char* p, const char *e)
{
return (isgb2312head(*(p)) && (e)-(p)>1 && isgb2312tail(*((p)+1))? 2: 0);
}
-my_bool ismbhead_gb2312(CHARSET_INFO *cs,uint c)
+my_bool ismbhead_gb2312(CHARSET_INFO *cs __attribute__((unused)),uint c)
{
return isgb2312head(c);
}
-int mbcharlen_gb2312(CHARSET_INFO *cs,uint c)
+int mbcharlen_gb2312(CHARSET_INFO *cs __attribute__((unused)),uint c)
{
return (isgb2312head(c)? 2:0);
}