From: Magnus Jacobsson Date: Sat, 7 Nov 2020 13:52:05 +0000 (+0100) Subject: Remove 1 -Wunused-but-set-variable warning in gvrender_core_json.c X-Git-Tag: 2.46.0~11^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a97cdcf8c3f65e530670e58c454c3a1fe2163bf;p=graphviz Remove 1 -Wunused-but-set-variable warning in gvrender_core_json.c --- diff --git a/plugin/core/gvrender_core_json.c b/plugin/core/gvrender_core_json.c index 104a65ee9..832cf4cd2 100644 --- a/plugin/core/gvrender_core_json.c +++ b/plugin/core/gvrender_core_json.c @@ -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);