Compare commits
No commits in common. "88cd834d1384f78c4b35b5e4b7e530bb933516c8" and "f625d2dabac0157cdcab47c5354785711a745618" have entirely different histories.
88cd834d13
...
f625d2daba
@ -176,16 +176,6 @@ int gds_tree_check_reference_loops(struct gds_library *lib)
|
|||||||
/* iterate through references and check if loop exists */
|
/* iterate through references and check if loop exists */
|
||||||
res = gds_tree_check_iterate_ref_and_check(cell_to_check, &visited_cells);
|
res = gds_tree_check_iterate_ref_and_check(cell_to_check, &visited_cells);
|
||||||
|
|
||||||
if (visited_cells) {
|
|
||||||
/* If cell contains no loop, print error when list not empty.
|
|
||||||
* In case of a loop, it is completely normal that the list is not empty,
|
|
||||||
* due to the instant return from gds_tree_check_iterate_ref_and_check()
|
|
||||||
*/
|
|
||||||
if (res == 0)
|
|
||||||
fprintf(stderr, "Visited cell list should be empty. This is a bug. Please report this.\n");
|
|
||||||
g_list_free(visited_cells);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
/* Error */
|
/* Error */
|
||||||
return res;
|
return res;
|
||||||
@ -200,6 +190,10 @@ int gds_tree_check_reference_loops(struct gds_library *lib)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (visited_cells) {
|
||||||
|
fprintf(stderr, "Visited cell list should be empty. This is a bug. Please report this.\n");
|
||||||
|
g_list_free(visited_cells);
|
||||||
|
}
|
||||||
|
|
||||||
return loop_count;
|
return loop_count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user