more correctly shut gcc warnings up
authordiscomfitor <discomfitor>
Sat, 15 Jan 2011 19:46:13 +0000 (19:46 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 15 Jan 2011 19:46:13 +0000 (19:46 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@56138 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_parse.c

index 1f28859..a1fba6b 100644 (file)
@@ -802,7 +802,7 @@ is_param(int n)
 }
 
 int
-is_num(int n)
+is_num(int n __UNUSED__)
 {
    char *str;
    char *end;
@@ -818,10 +818,6 @@ is_num(int n)
    if (str[0] == 0) return 0;
    end = str;
    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;
 }