From a7d0e6de65cab76c87dd8dbb71a77ed46550d644 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 13 Apr 2021 20:23:37 -0700 Subject: [PATCH] use a stronger type to squash 3 -Wconversion warnings in set_attrwf --- plugin/core/gvrender_core_json.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/core/gvrender_core_json.c b/plugin/core/gvrender_core_json.c index 6ef7358d5..72fdb33e4 100644 --- a/plugin/core/gvrender_core_json.c +++ b/plugin/core/gvrender_core_json.c @@ -15,6 +15,7 @@ #endif #include +#include #include #include #include @@ -136,7 +137,7 @@ static void indent(GVJ_t * job, int level) gvputs(job, " "); } -static void set_attrwf(Agraph_t * g, int toplevel, int value) +static void set_attrwf(Agraph_t * g, int toplevel, bool value) { Agraph_t *subg; Agnode_t *n; @@ -707,7 +708,7 @@ static void json_end_graph(GVJ_t *job) g->clos->disc.io = &io; - set_attrwf(g, TRUE, FALSE); + set_attrwf(g, TRUE, false); sp.Level = 0; sp.isLatin = GD_charset(g) == CHAR_LATIN1; sp.doXDot = job->render.id == FORMAT_JSON || job->render.id == FORMAT_XDOT_JSON; -- 2.40.0