mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +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)
|
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 ();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user