From: Magnus Jacobsson Date: Tue, 1 Sep 2020 06:36:57 +0000 (+0200) Subject: Remove 1 -Wunused-but-set-variable warning in attr.c X-Git-Tag: 2.46.0~20^2^2~93^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=201fb55d9926cf275dc5ba27622ee931e26b86f7;p=graphviz Remove 1 -Wunused-but-set-variable warning in attr.c --- diff --git a/lib/cgraph/attr.c b/lib/cgraph/attr.c index 7094093f0..3c723dda3 100644 --- a/lib/cgraph/attr.c +++ b/lib/cgraph/attr.c @@ -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 */