From db841a242f801a2b851d3d3908729d329283618c Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 23 May 2011 19:20:46 +0200 Subject: [PATCH] isl_tab.c: avoid warning about unhandled enumeration value in switch Signed-off-by: Sven Verdoolaege --- isl_tab.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/isl_tab.c b/isl_tab.c index 3cea56e7..227f054b 100644 --- a/isl_tab.c +++ b/isl_tab.c @@ -2927,7 +2927,7 @@ static int perform_undo_var(struct isl_tab *tab, struct isl_tab_undo *undo) WARN static int perform_undo_var(struct isl_tab *tab, struct isl_tab_undo *undo) { struct isl_tab_var *var = var_from_index(tab, undo->u.var_index); - switch(undo->type) { + switch (undo->type) { case isl_tab_undo_nonneg: var->is_nonneg = 0; break; @@ -2965,6 +2965,10 @@ static int perform_undo_var(struct isl_tab *tab, struct isl_tab_undo *undo) break; case isl_tab_undo_relax: return unrelax(tab, var); + default: + isl_die(tab->mat->ctx, isl_error_internal, + "perform_undo_var called on invalid undo record", + return -1); } return 0; -- 2.11.4.GIT