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

index 7094093f0aca58bfacde5fb8cffc8ddc66ead7b2..3c723dda338fd998dba0ba04ff1ae3c2e0a09a79 100644 (file)
@@ -256,7 +256,6 @@ static void addattr(Agraph_t * g, Agobj_t * obj, Agsym_t * sym)
 
 static Agsym_t *setattr(Agraph_t * g, int kind, char *name, char *value)
 {
-    Agdatadict_t *dd;
     Dict_t *ldict, *rdict;
     Agsym_t *lsym, *psym, *rsym, *rv;
     Agraph_t *root;
@@ -265,7 +264,7 @@ static Agsym_t *setattr(Agraph_t * g, int kind, char *name, char *value)
 
     assert(value);
     root = agroot(g);
-    dd = agdatadict(g, TRUE);  /* force initialization of string attributes */
+    agdatadict(g, TRUE);       /* force initialization of string attributes */
     ldict = agdictof(g, kind);
     lsym = aglocaldictsym(ldict, name);
     if (lsym) {                        /* update old local definition */