mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
style: avoid default in switch on enums
* src/assoc.c (assoc_to_string): here.
This commit is contained in:
@@ -29,9 +29,6 @@ assoc_to_string (assoc a)
|
||||
{
|
||||
switch (a)
|
||||
{
|
||||
default:
|
||||
abort ();
|
||||
|
||||
case undef_assoc:
|
||||
return "undefined associativity";
|
||||
|
||||
@@ -47,4 +44,5 @@ assoc_to_string (assoc a)
|
||||
case precedence_assoc:
|
||||
return "%precedence";
|
||||
}
|
||||
abort ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user