From 8654fca058ef87ac94277c66ef22b28a297cd22d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 14 Feb 2019 06:23:41 +0100 Subject: [PATCH] style: avoid default in switch on enums * src/assoc.c (assoc_to_string): here. --- src/assoc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/assoc.c b/src/assoc.c index fc1f937f..b0c4e093 100644 --- a/src/assoc.c +++ b/src/assoc.c @@ -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 (); }