style: avoid default in switch on enums

* src/assoc.c (assoc_to_string): here.
This commit is contained in:
Akim Demaille
2019-02-14 06:23:41 +01:00
parent 05a8097779
commit 8654fca058

View File

@@ -29,9 +29,6 @@ assoc_to_string (assoc a)
{ {
switch (a) switch (a)
{ {
default:
abort ();
case undef_assoc: case undef_assoc:
return "undefined associativity"; return "undefined associativity";
@@ -47,4 +44,5 @@ assoc_to_string (assoc a)
case precedence_assoc: case precedence_assoc:
return "%precedence"; return "%precedence";
} }
abort ();
} }