]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wunused-but-set-variable warning in gvrender_core_json.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Nov 2020 13:52:05 +0000 (14:52 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 08:12:42 +0000 (09:12 +0100)
plugin/core/gvrender_core_json.c

index 104a65ee9b5b0dff4ed7a845197063b5c2e30717..832cf4cd2b33b0aca235b749c9121d3ac334aaeb 100644 (file)
@@ -716,7 +716,6 @@ static void json_end_graph(GVJ_t *job)
 {
     graph_t *g = job->obj->u.g;
     state_t sp;
-    Agiodisc_t* io_save;
     static Agiodisc_t io;
 
     if (io.afread == NULL) {
@@ -725,7 +724,6 @@ static void json_end_graph(GVJ_t *job)
        io.flush = (flushfn)gvflush;
     }
 
-    io_save = g->clos->disc.io;
     g->clos->disc.io = &io;
 
     set_attrwf(g, TRUE, FALSE);