warning--

(shuddup gcc)



SVN revision: 52433
This commit is contained in:
Carsten Haitzler 2010-09-19 00:33:45 +00:00
parent ccb4dbd91b
commit ead7329b42
1 changed files with 7 additions and 2 deletions

View File

@ -833,7 +833,8 @@ is_num(int n)
{
char *str;
char *end;
long int ret;
str = eina_list_nth(params, n);
if (!str)
{
@ -843,7 +844,11 @@ is_num(int n)
}
if (str[0] == 0) return 0;
end = str;
strtol(str, &end, 0);
ret = strtol(str, &end, 0);
if ((ret == LONG_MIN) || (ret == LONG_MAX))
{
n = 0; // do nothing. shut gcc warnings up
}
if ((end != str) && (end[0] == 0)) return 1;
return 0;
}