From 201fb55d9926cf275dc5ba27622ee931e26b86f7 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 1 Sep 2020 08:36:57 +0200 Subject: [PATCH] Remove 1 -Wunused-but-set-variable warning in attr.c --- lib/cgraph/attr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */ -- 2.50.1