diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-11-02 18:10:32 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:09:36 +0100 |
commit | 74ef5529c81fc3ad4bcb873ceba045f8142ddcfe (patch) | |
tree | 44306bdc0b832dba6abf086c20585b77c52854f3 | |
parent | f522eefcfd1dec9dc5291146e6747a0cb4632385 (diff) | |
download | gcc-74ef5529c81fc3ad4bcb873ceba045f8142ddcfe.zip gcc-74ef5529c81fc3ad4bcb873ceba045f8142ddcfe.tar.gz gcc-74ef5529c81fc3ad4bcb873ceba045f8142ddcfe.tar.bz2 |
gccrs: Add missing override specifier
Some function lacked the override specifier, this made the compiler emit
several warning.
gcc/rust/ChangeLog:
* ast/rust-ast.h: Add override specifier.
* ast/rust-item.h: Likewise.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 2 | ||||
-rw-r--r-- | gcc/rust/ast/rust-item.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 9f5242a..75af294 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1495,7 +1495,7 @@ public: } NodeId get_node_id () const { return node_id; } - location_t get_locus () const { return locus; } + location_t get_locus () const override { return locus; } }; /* Abstract base class for items used within an inherent impl block (the impl diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h index eba86dc..57059eb 100644 --- a/gcc/rust/ast/rust-item.h +++ b/gcc/rust/ast/rust-item.h @@ -3291,7 +3291,7 @@ public: std::string as_string () const override; - location_t get_locus () const { return locus; } + location_t get_locus () const override { return locus; } void accept_vis (ASTVisitor &vis) override; |