]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wswitch-default warning in attr.c
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 1 Sep 2020 06:37:26 +0000 (08:37 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 7 Sep 2020 13:42:17 +0000 (15:42 +0200)
lib/cgraph/attr.c

index 3c723dda338fd998dba0ba04ff1ae3c2e0a09a79..a223ac1cd67a0f8acbc2e8728cefa22d5453ea06 100644 (file)
@@ -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;
        }