]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix a warning about extra semicolon
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 7 Aug 2023 07:29:54 +0000 (09:29 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:28 +0000 (19:00 +0100)
This semicolon produces several warning in each TU the header file is
included in.

gcc/rust/ChangeLog:

* util/rust-common.h (enum_to_str): Remove extra semicolon after
the function.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/util/rust-common.h

index 763771dceb511e3ad86c058bd98ece0577cf2281..fc8ba6e1e5849b66d9c17f9a5ee9711cdf130621 100644 (file)
@@ -63,7 +63,7 @@ enum_to_str (Mutability mut)
       return "Mut";
     }
   gcc_unreachable ();
-};
+}
 
 } // namespace Rust