From: Matthew Fernandez Date: Thu, 8 Sep 2022 03:25:58 +0000 (-0700) Subject: sfdpgen: remove shadowing of 'UNMATCHED' X-Git-Tag: 6.0.1~5^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a48b8840d96c9b209f111551f676a90dd980323;p=graphviz sfdpgen: remove shadowing of 'UNMATCHED' These constants were added in 1b847b5abf50d2ab0701523b90a20306d0ee5528 and it is unclear why, given they are unused. They shadow a different constant in general.h, causing compiler warnings. --- diff --git a/lib/sfdpgen/Multilevel.c b/lib/sfdpgen/Multilevel.c index bcadf1ad7..d6f5bb374 100644 --- a/lib/sfdpgen/Multilevel.c +++ b/lib/sfdpgen/Multilevel.c @@ -321,7 +321,7 @@ static void maximal_independent_edge_set_heavest_edge_pernode_leaves_first(Spars double *a, amax = 0; int first = TRUE, jamax = 0; int *matched, nz, ncmax = 0, nz0, nzz,k ; - enum {UNMATCHED = -2, MATCHED = -1}; + enum {MATCHED = -1}; assert(A); assert(SparseMatrix_known_strucural_symmetric(A)); @@ -497,7 +497,7 @@ static void maximal_independent_edge_set_heavest_edge_pernode_supernodes_first(S double *a, amax = 0; int first = TRUE, jamax = 0; int *matched, nz, nz0; - enum {UNMATCHED = -2, MATCHED = -1}; + enum {MATCHED = -1}; int nsuper, *super = NULL, *superp = NULL; assert(A); @@ -640,7 +640,7 @@ static void maximal_independent_edge_set_heavest_cluster_pernode_leaves_first(Sp (void)n; double *a; int *matched, nz, nz0, nzz,k, nv; - enum {UNMATCHED = -2, MATCHED = -1}; + enum {MATCHED = -1}; double *vlist; assert(A);