warnings--
* Remove warnings caused by comparison between signed and unsigned values * Remove a comparison of unsigned expression < 0 that is always false SVN revision: 53588
This commit is contained in:
parent
9e09bbc80a
commit
4b7e285cf8
|
@ -369,7 +369,7 @@ _check_letter(const char *str, int length)
|
|||
static Eina_Bool
|
||||
_check_string(void *data)
|
||||
{
|
||||
int mid, steps, length, diff, len;
|
||||
int mid, steps, length, diff;
|
||||
Elm_Diskpicker_Item *it;
|
||||
Eina_List *list, *l;
|
||||
Evas_Coord ox, ow;
|
||||
|
@ -388,6 +388,7 @@ _check_string(void *data)
|
|||
|
||||
EINA_LIST_FOREACH(list, l, it)
|
||||
{
|
||||
int len = strlen(it->label);
|
||||
Evas_Coord x, w;
|
||||
evas_object_geometry_get(it->base.view, &x, NULL, &w, NULL);
|
||||
/* item not visible */
|
||||
|
@ -402,7 +403,7 @@ _check_string(void *data)
|
|||
"elm");
|
||||
else
|
||||
{
|
||||
if ((wd->len_threshold) && (strlen(it->label) > wd->len_threshold))
|
||||
if ((wd->len_threshold) && (len > wd->len_threshold))
|
||||
edje_object_signal_emit(it->base.view, "elm,state,center_small",
|
||||
"elm");
|
||||
else
|
||||
|
@ -410,7 +411,6 @@ _check_string(void *data)
|
|||
"elm");
|
||||
}
|
||||
|
||||
len = strlen(it->label);
|
||||
if (len <= wd->len_side)
|
||||
continue;
|
||||
|
||||
|
|
|
@ -136,13 +136,14 @@ _get_value_in_key_string(const char *oldstring, char *key, char **value)
|
|||
curlocater = strstr(oldstring, key);
|
||||
if (curlocater)
|
||||
{
|
||||
int key_len = strlen(key);
|
||||
starttag = curlocater;
|
||||
endtag = curlocater + strlen(key);
|
||||
endtag = curlocater + key_len;
|
||||
if ((!endtag) || (*endtag != '='))
|
||||
return -1;
|
||||
|
||||
firstindex = abs(oldstring - curlocater);
|
||||
firstindex += strlen(key) + 1; // strlen("key") + strlen("=")
|
||||
firstindex += key_len + 1; // strlen("key") + strlen("=")
|
||||
*value = (char *)oldstring + firstindex;
|
||||
|
||||
while (oldstring != starttag)
|
||||
|
@ -205,6 +206,7 @@ _strbuf_key_value_replace(Eina_Strbuf *srcbuf, char *key, const char *value, int
|
|||
insertflag = 1;
|
||||
else
|
||||
{
|
||||
int key_len = strlen(key);
|
||||
do
|
||||
{
|
||||
starttag = strchr(srcstring, '<');
|
||||
|
@ -218,7 +220,7 @@ _strbuf_key_value_replace(Eina_Strbuf *srcbuf, char *key, const char *value, int
|
|||
break;
|
||||
} while (strlen(srcstring) > 1);
|
||||
|
||||
if (starttag && endtag && tagtxtlen > strlen(key))
|
||||
if (starttag && endtag && tagtxtlen > key_len)
|
||||
{
|
||||
repbuf = eina_strbuf_new();
|
||||
diffbuf = eina_strbuf_new();
|
||||
|
@ -227,7 +229,7 @@ _strbuf_key_value_replace(Eina_Strbuf *srcbuf, char *key, const char *value, int
|
|||
curlocater = strstr(srcstring, key);
|
||||
if (curlocater)
|
||||
{
|
||||
replocater = curlocater + strlen(key) + 1;
|
||||
replocater = curlocater + key_len + 1;
|
||||
while ((*replocater != '=') && (replocater))
|
||||
replocater++;
|
||||
if (replocater)
|
||||
|
@ -306,7 +308,7 @@ _is_width_over(Evas_Object *obj)
|
|||
Evas_Coord vx, vy, vw, vh;
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
const char *ellipsis_string = "...";
|
||||
size_t ellen = strlen(ellipsis_string)+1;
|
||||
Evas_Coord ellen = strlen(ellipsis_string)+1;
|
||||
|
||||
if (!wd) return 0;
|
||||
|
||||
|
|
|
@ -624,11 +624,8 @@ elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting setting)
|
|||
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
|
||||
if (setting < ELM_THUMB_ANIMATION_START ||
|
||||
setting >= ELM_THUMB_ANIMATION_LAST)
|
||||
{
|
||||
if (setting >= ELM_THUMB_ANIMATION_LAST)
|
||||
return;
|
||||
}
|
||||
|
||||
wd->anim_setting = setting;
|
||||
if (setting == ELM_THUMB_ANIMATION_LOOP)
|
||||
|
|
Loading…
Reference in New Issue