From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7905) id 30125385DC35; Tue, 16 Jan 2024 18:19:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30125385DC35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705429181; bh=A1uc7WX87p5hAv64D3ncee7A4BtLC2bACKb0dTQkBzs=; h=From:To:Subject:Date:From; b=cJgVRy6QT4UOB8u+EceH2Qz4g+38c/glFxn9cQPIcEkuSrG4Zb0IzNqSpgwyct6oR oM2exWdZcWU6+rTCbaTT95lnZt12wPsBO/USKLEZpO60KFDMwSrHR+xWuL++swGOwy x26flnO17JtVCrJr1m+dzd12e/2IZ7Tl+QaJby8A= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Arthur Cohen To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-8112] gccrs: Add missing override specifier X-Act-Checkin: gcc X-Git-Author: Pierre-Emmanuel Patry X-Git-Refname: refs/heads/trunk X-Git-Oldrev: f522eefcfd1dec9dc5291146e6747a0cb4632385 X-Git-Newrev: 74ef5529c81fc3ad4bcb873ceba045f8142ddcfe Message-Id: <20240116181941.30125385DC35@sourceware.org> Date: Tue, 16 Jan 2024 18:19:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:74ef5529c81fc3ad4bcb873ceba045f8142ddcfe commit r14-8112-g74ef5529c81fc3ad4bcb873ceba045f8142ddcfe Author: Pierre-Emmanuel Patry Date: Thu Nov 2 18:10:32 2023 +0100 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 Diff: --- gcc/rust/ast/rust-ast.h | 2 +- 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 9f5242ae80d..75af2940c76 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 eba86dca2fa..57059eb0672 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;