From 49d2c6ced2c894a8fe21ec0a21c1458cb3086ee8 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 30 Apr 2025 16:50:17 -0400 Subject: prime-paths.cc: remove redundant semicolons Fixes a couple of pedantic warnings. gcc/ChangeLog: * prime-paths.cc (limit_checked_add): Remove redundant trailing ';'. (enters_through_p): Likewise. Signed-off-by: David Malcolm --- gcc/prime-paths.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/prime-paths.cc b/gcc/prime-paths.cc index cde630c..838343c 100644 --- a/gcc/prime-paths.cc +++ b/gcc/prime-paths.cc @@ -53,7 +53,7 @@ limit_checked_add (size_t approx) { approx_limit -= approx < approx_limit ? approx : approx_limit; return approx_limit == 0; -}; +} /* Check if adding APPROX would exceed the path limit. This is necessary when (pessimistically counted) trie insertions would exceed the limit and yields @@ -1061,7 +1061,7 @@ enters_through_p (const struct graph *cfg, const vec &path, int vertex) if (cfg->vertices[last].component == cfg->vertices[vertex].component) return false; return edge_p (cfg, last, vertex); -}; +} /* Worker for scc_entry_prime_paths. CFG is the CFG for the function, SCC_ENTRY_PATHS the accumulated scc_entry_paths for all the SCCs, PRIME_PATHS -- cgit v1.1