From: Costa Shulyupin Date: Wed, 23 Feb 2022 04:12:51 +0000 (+0200) Subject: tools: remove unused argument in setGlobalEdgeAttr X-Git-Tag: 3.0.0~7^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15a57e1815d3f6abe9ca64348cdfab8838bd39bf;p=graphviz tools: remove unused argument in setGlobalEdgeAttr fix warning: cmd/tools/graphml2gv.c: In function ‘setGlobalEdgeAttr’: cmd/tools/graphml2gv.c:348:71: warning: unused parameter ‘ud’ [-Wunused-parameter] 348 | setGlobalEdgeAttr(Agraph_t * g, char *name, char *value, userdata_t * ud) | --- diff --git a/cmd/tools/graphml2gv.c b/cmd/tools/graphml2gv.c index ae659544f..3bc8f8560 100644 --- a/cmd/tools/graphml2gv.c +++ b/cmd/tools/graphml2gv.c @@ -345,7 +345,7 @@ setEdgeAttr(Agedge_t * ep, char *name, char *value, userdata_t * ud) * The names always begin with "edge:". */ static void -setGlobalEdgeAttr(Agraph_t * g, char *name, char *value, userdata_t * ud) +setGlobalEdgeAttr(Agraph_t * g, char *name, char *value) { if (strncmp(name, EDGELBL, ELBLLEN)) fprintf(stderr, @@ -572,7 +572,7 @@ static void endElementHandler(void *userData, const char *name) setGlobalNodeAttr(G, name, value); break; case TAG_EDGE: - setGlobalEdgeAttr(G, name, value, ud); + setGlobalEdgeAttr(G, name, value); break; case TAG_GRAPH: setGraphAttr(G, name, value, ud);