Commit 7dde35ae authored by serg@serg.mylan's avatar serg@serg.mylan

warnings removed

parent ceec63f1
...@@ -107,7 +107,7 @@ bool test_if_int(const char *str, int length, const char *int_end, ...@@ -107,7 +107,7 @@ bool test_if_int(const char *str, int length, const char *int_end,
return 1; return 1;
} }
#ifdef NOT_USED
static bool test_if_real(const char *str,int length, CHARSET_INFO *cs) static bool test_if_real(const char *str,int length, CHARSET_INFO *cs)
{ {
cs= system_charset_info; // QQ move test_if_real into CHARSET_INFO struct cs= system_charset_info; // QQ move test_if_real into CHARSET_INFO struct
...@@ -159,7 +159,7 @@ static bool test_if_real(const char *str,int length, CHARSET_INFO *cs) ...@@ -159,7 +159,7 @@ static bool test_if_real(const char *str,int length, CHARSET_INFO *cs)
} }
return 1; return 1;
} }
#endif
static inline uint field_length_without_space(const char *ptr, uint length) static inline uint field_length_without_space(const char *ptr, uint length)
{ {
...@@ -2273,7 +2273,7 @@ int Field_float::store(const char *from,uint len,CHARSET_INFO *cs) ...@@ -2273,7 +2273,7 @@ int Field_float::store(const char *from,uint len,CHARSET_INFO *cs)
int err; int err;
char *end; char *end;
double nr= my_strntod(cs,(char*) from,len,&end,&err); double nr= my_strntod(cs,(char*) from,len,&end,&err);
if (!err && (!current_thd->count_cuted_fields || end-from==len)) if (!err && (!current_thd->count_cuted_fields || end-from==(int)len))
{ {
return Field_float::store(nr); return Field_float::store(nr);
} }
...@@ -2571,7 +2571,7 @@ int Field_double::store(const char *from,uint len,CHARSET_INFO *cs) ...@@ -2571,7 +2571,7 @@ int Field_double::store(const char *from,uint len,CHARSET_INFO *cs)
int err; int err;
char *end; char *end;
double nr= my_strntod(cs,(char*) from,len,&end,&err); double nr= my_strntod(cs,(char*) from,len,&end,&err);
if (!err && (!current_thd->count_cuted_fields || end-from==len)) if (!err && (!current_thd->count_cuted_fields || end-from==(int)len))
{ {
return Field_double::store(nr); return Field_double::store(nr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment