From: Matthew Fernandez Date: Sat, 13 Nov 2021 02:59:48 +0000 (-0800) Subject: sccmap.c: return an unsigned type from 'visit' X-Git-Tag: 2.50.0~26^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4abfc0403c505741dd3f09b7de2e57350c3904e6;p=graphviz sccmap.c: return an unsigned type from 'visit' Squashes a -Wsign-conversion warning. The `val` member of `Agnodeinfo_t` is unsigned and all uses of this function store the return value in an unsigned. So it seems this function always should have been declared as returning an unsigned. --- diff --git a/cmd/tools/sccmap.c b/cmd/tools/sccmap.c index 95cf1459b..d5dc010d8 100644 --- a/cmd/tools/sccmap.c +++ b/cmd/tools/sccmap.c @@ -139,7 +139,7 @@ static void nodeInduce(Agraph_t * g, Agraph_t* map) } } -static int visit(Agnode_t * n, Agraph_t * map, Stack * sp, sccstate * st) +static unsigned visit(Agnode_t * n, Agraph_t * map, Stack * sp, sccstate * st) { unsigned int m, min; Agnode_t *t;