From 81b1e28b17ebb94b49aa86043ab343163667f1b3 Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 19 Sep 2010 00:33:45 +0000 Subject: [PATCH] warning-- (shuddup gcc) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@52433 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_parse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/edje_cc_parse.c b/src/bin/edje_cc_parse.c index 1c63b5f..6cb9cf0 100644 --- a/src/bin/edje_cc_parse.c +++ b/src/bin/edje_cc_parse.c @@ -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; } -- 2.7.4