isl_stream_read_schedule_constraints: do not use default case
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 18 Aug 2017 07:44:20 +0000 (18 09:44 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 27 Sep 2017 07:23:33 +0000 (27 09:23 +0200)
A default case prevents the compiler from detecting that
a new case needs to be added to a switch.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_schedule_constraints.c

index f972b9e..13e8e5f 100644 (file)
@@ -612,7 +612,11 @@ __isl_give isl_schedule_constraints *isl_stream_read_schedule_constraints(
                        if (!sc)
                                return NULL;
                        break;
-               default:
+               case isl_sc_key_validity:
+               case isl_sc_key_coincidence:
+               case isl_sc_key_condition:
+               case isl_sc_key_conditional_validity:
+               case isl_sc_key_proximity:
                        constraints = read_union_map(s);
                        sc = isl_schedule_constraints_set(sc, key, constraints);
                        if (!sc)