From c7cdd0af57b7a88c79c261cf1d359f12cb4449ae Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 1 Sep 2020 08:37:26 +0200 Subject: [PATCH] Remove 1 -Wswitch-default warning in attr.c --- lib/cgraph/attr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cgraph/attr.c b/lib/cgraph/attr.c index 3c723dda3..a223ac1cd 100644 --- a/lib/cgraph/attr.c +++ b/lib/cgraph/attr.c @@ -296,6 +296,9 @@ static Agsym_t *setattr(Agraph_t * g, int kind, char *name, char *value) for (e = agfstout(root, n); e; e = agnxtout(root, e)) addattr(g, (Agobj_t *) e, rsym); break; + default: + assert(!"unreachable"); + break; } rv = rsym; } -- 2.40.0