From: Sven Verdoolaege Date: Sun, 6 Sep 2009 10:59:59 +0000 (+0200) Subject: polyhedron_minimize.c: handle all enumeration values in switch X-Git-Tag: isl-0.01~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcd3209ffd92bb39e7b11c3f6c21fd6d3c7daa8b;p=platform%2Fupstream%2Fisl.git polyhedron_minimize.c: handle all enumeration values in switch --- diff --git a/polyhedron_minimize.c b/polyhedron_minimize.c index fbd0e1a..4dc0c06 100644 --- a/polyhedron_minimize.c +++ b/polyhedron_minimize.c @@ -66,8 +66,10 @@ int main(int argc, char **argv) else obj = vec_ror(obj); res = isl_basic_set_solve_ilp(bset, 0, obj->el, &opt, &sol); - assert(res != isl_lp_error); switch (res) { + case isl_lp_error: + fprintf(stderr, "error\n"); + return -1; case isl_lp_empty: fprintf(stdout, "empty\n"); break;