From: David Malcolm Date: Wed, 30 Apr 2025 20:50:17 +0000 (-0400) Subject: prime-paths.cc: remove redundant semicolons X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49d2c6ced2c894a8fe21ec0a21c1458cb3086ee8;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/prime-paths.cc b/gcc/prime-paths.cc index cde630cb5e0..838343c8427 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