pkgsrc/devel/cqual/patches/patch-bi
2006-03-02 19:56:24 +00:00

48 lines
1.5 KiB
Text

$NetBSD: patch-bi,v 1.2 2006/03/02 19:56:24 wiz Exp $
SunPro says: void functions cannot return a value.
--- src/poly-quals.c.orig 2003-12-10 18:31:03.000000000 +0000
+++ src/poly-quals.c
@@ -1356,6 +1356,7 @@ static bool _leq_qual (qual q1, qual q2,
else
{
assert (0);
+ return FALSE;
}
}
@@ -1581,6 +1582,7 @@ static int _print_qual(printf_func pf, q
return 0;
default:
assert (0);
+ return 0;
}
}
@@ -2833,13 +2835,13 @@ static void _traverse_error_path_edges(q
void traverse_error_path_edges(qual q, bool expand_summaries, bool nonerrors,
edge_traverse_fn f, void *arg)
{
- return _traverse_error_path_edges (q, FALSE, expand_summaries, nonerrors, f, arg);
+ _traverse_error_path_edges (q, FALSE, expand_summaries, nonerrors, f, arg);
}
void cs_traverse_error_path_edges(qual q, bool expand_summaries, bool nonerrors,
edge_traverse_fn f, void *arg)
{
- return _traverse_error_path_edges (q, TRUE, expand_summaries, nonerrors, f, arg);
+ _traverse_error_path_edges (q, TRUE, expand_summaries, nonerrors, f, arg);
}
/**************************************************************************
@@ -3016,7 +3018,8 @@ static void _dn_dfs (FILE* f, region scr
if (root->link)
{
add_graph_edge (f, root, ecr_qual (root), "+", TRUE);
- return _dn_dfs (f, scratch, ecr_qual (root), depth, printed_edges);
+ _dn_dfs (f, scratch, ecr_qual (root), depth, printed_edges);
+ return;
}
scan_qual_edge_hashset (e, qess, root->u.var.lb)