]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
prime-paths.cc: remove redundant semicolons
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 30 Apr 2025 20:50:17 +0000 (16:50 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 30 Apr 2025 20:50:17 +0000 (16:50 -0400)
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 <dmalcolm@redhat.com>
gcc/prime-paths.cc

index cde630cb5e080c528d56cdddd1e6a8a6c29690d0..838343c8427d932f4b0e0fec7b711bced45729e8 100644 (file)
@@ -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<int> &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