]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: hir: remove stray semicolon
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 24 May 2023 13:19:43 +0000 (09:19 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:37:21 +0000 (18:37 +0100)
Fix for this warning:

../../src/gcc/rust/typecheck/rust-hir-trait-reference.cc:40:2: warning: extra ‘;’ [-Wpedantic]
   40 | };
      |  ^

gcc/rust/ChangeLog:

* typecheck/rust-hir-trait-reference.cc (TraitItemReference::is_optional): Remove
stray semicolon.

gcc/rust/typecheck/rust-hir-trait-reference.cc

index 499999429fdef2f8e831df270b67446dbec1979d..6afb6f4df6d1b18cc7fb6112ff01fcd5840a8609 100644 (file)
@@ -37,7 +37,7 @@ bool
 TraitItemReference::is_optional () const
 {
   return optional_flag;
-};
+}
 
 std::string
 TraitItemReference::get_identifier () const