diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-02-05 13:46:41 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-02-06 18:03:42 +0000 |
commit | db7134353447921136a321b8fd78cea78f2c344e (patch) | |
tree | 2ff1f7f59038e51c3083a86d338395717742df17 /gcc/rust/backend/rust-compile-context.h | |
parent | 34a39466b2adb9684a1737c6ea4915e0194c26bf (diff) | |
download | gcc-db7134353447921136a321b8fd78cea78f2c344e.zip gcc-db7134353447921136a321b8fd78cea78f2c344e.tar.gz gcc-db7134353447921136a321b8fd78cea78f2c344e.tar.bz2 |
Fix overloaded virtual and unused parameters warnings
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-context.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h index 7d131f2..25c9b89 100644 --- a/gcc/rust/backend/rust-compile-context.h +++ b/gcc/rust/backend/rust-compile-context.h @@ -227,11 +227,11 @@ public: virtual ~TyTyResolveCompile () {} - void visit (TyTy::ErrorType &type) override { gcc_unreachable (); } + void visit (TyTy::ErrorType &) override { gcc_unreachable (); } - void visit (TyTy::InferType &type) override { gcc_unreachable (); } + void visit (TyTy::InferType &) override { gcc_unreachable (); } - void visit (TyTy::StructFieldType &type) override { gcc_unreachable (); } + void visit (TyTy::StructFieldType &) override { gcc_unreachable (); } void visit (TyTy::FnType &type) override { @@ -266,7 +266,7 @@ public: ctx->get_mappings ()->lookup_location (type.get_ref ())); } - void visit (TyTy::UnitType &type) override + void visit (TyTy::UnitType &) override { translated = ctx->get_backend ()->void_type (); } |