diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-11-06 15:19:55 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-21 12:32:56 +0100 |
commit | 1e12ef057250e1d3a4a53697862bc270d9cfa45c (patch) | |
tree | d45cfe2c5f0e27321827e61fdcf6d9d9face588f /gcc/rust/backend | |
parent | bbbf9a239b54d697f5978a4dcd63ebbda9f3f1c4 (diff) | |
download | gcc-1e12ef057250e1d3a4a53697862bc270d9cfa45c.zip gcc-1e12ef057250e1d3a4a53697862bc270d9cfa45c.tar.gz gcc-1e12ef057250e1d3a4a53697862bc270d9cfa45c.tar.bz2 |
gccrs: asm: Fix clang warnings
Fixes a couple of warnings thrown by clang, with mismatched class/struct
usages and unused members.
gcc/rust/ChangeLog:
* ast/rust-expr.h: Remove invalid usage of `struct`.
* backend/rust-compile-asm.h: Remove unused `translated` member.
* backend/rust-compile-asm.cc (CompileAsm::CompileAsm): Remove usage
of `translated` member.
* checks/errors/rust-unsafe-checker.h: Mark visitor as `override`.
* hir/tree/rust-hir-expr.h (struct AnonConst): Remove unused `locus`
member.
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r-- | gcc/rust/backend/rust-compile-asm.cc | 5 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-asm.h | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/gcc/rust/backend/rust-compile-asm.cc b/gcc/rust/backend/rust-compile-asm.cc index e85d08d..be553a3 100644 --- a/gcc/rust/backend/rust-compile-asm.cc +++ b/gcc/rust/backend/rust-compile-asm.cc @@ -3,9 +3,8 @@ namespace Rust { namespace Compile { -CompileAsm::CompileAsm (Context *ctx) - : HIRCompileBase (ctx), translated (error_mark_node) -{} +CompileAsm::CompileAsm (Context *ctx) : HIRCompileBase (ctx) {} + tree CompileAsm::tree_codegen_asm (HIR::InlineAsm &expr) { diff --git a/gcc/rust/backend/rust-compile-asm.h b/gcc/rust/backend/rust-compile-asm.h index 402d950..4abd24e 100644 --- a/gcc/rust/backend/rust-compile-asm.h +++ b/gcc/rust/backend/rust-compile-asm.h @@ -28,8 +28,6 @@ namespace Compile { class CompileAsm : private HIRCompileBase { private: - tree translated; - // RELEVANT MEMBER FUNCTIONS // The limit is 5 because it stands for the 5 things that the C version of |