]> granicus.if.org Git - graphviz/commitdiff
tools: remove unused argument in setGlobalNodeAttr
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Wed, 23 Feb 2022 04:11:41 +0000 (06:11 +0200)
committerCosta Shulyupin <constantine.shulyupin@gmail.com>
Wed, 23 Feb 2022 04:11:41 +0000 (06:11 +0200)
cmd/tools/graphml2gv.c: In function ‘setGlobalNodeAttr’:
cmd/tools/graphml2gv.c:298:71: warning: unused parameter ‘ud’ [-Wunused-parameter]
  298 | setGlobalNodeAttr(Agraph_t * g, char *name, char *value, userdata_t * ud)
      |                                                          ~~~~~~~~~~~~~^~

cmd/tools/graphml2gv.c

index 0f511bd850aebb74f0f0dcd8a7fc75c8e1515357..ae659544f0143acb47e525071392cfc34604250a 100644 (file)
@@ -295,7 +295,7 @@ setNodeAttr(Agnode_t * np, char *name, char *value, userdata_t * ud)
  * The names must always begin with "node:".
  */
 static void
-setGlobalNodeAttr(Agraph_t * g, char *name, char *value, userdata_t * ud)
+setGlobalNodeAttr(Agraph_t * g, char *name, char *value)
 {
     if (strncmp(name, NODELBL, NLBLLEN))
        fprintf(stderr,
@@ -569,7 +569,7 @@ static void endElementHandler(void *userData, const char *name)
            setAttr(name, value, ud);
            break;
        case TAG_NODE:
-           setGlobalNodeAttr(G, name, value, ud);
+           setGlobalNodeAttr(G, name, value);
            break;
        case TAG_EDGE:
            setGlobalEdgeAttr(G, name, value, ud);