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-tyty.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-tyty.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-tyty.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/gcc/rust/backend/rust-compile-tyty.h b/gcc/rust/backend/rust-compile-tyty.h index 2c54b17..0629cbe 100644 --- a/gcc/rust/backend/rust-compile-tyty.h +++ b/gcc/rust/backend/rust-compile-tyty.h @@ -44,22 +44,19 @@ public: ~TyTyCompile () {} - 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::ADTType &type) override { gcc_unreachable (); } + void visit (TyTy::ADTType &) override { gcc_unreachable (); } - void visit (TyTy::TupleType &type) override { gcc_unreachable (); } + void visit (TyTy::TupleType &) override { gcc_unreachable (); } - void visit (TyTy::ArrayType &type) override { gcc_unreachable (); } + void visit (TyTy::ArrayType &) override { gcc_unreachable (); } - void visit (TyTy::UnitType &type) override - { - translated = backend->void_type (); - } + void visit (TyTy::UnitType &) override { translated = backend->void_type (); } void visit (TyTy::FnType &type) override { @@ -93,7 +90,7 @@ public: mappings->lookup_location (type.get_ref ())); } - void visit (TyTy::BoolType &type) override + void visit (TyTy::BoolType &) override { translated = backend->named_type ("bool", backend->bool_type (), Linemap::predeclared_location ()); @@ -190,14 +187,14 @@ public: gcc_unreachable (); } - void visit (TyTy::USizeType &type) override + void visit (TyTy::USizeType &) override { translated = backend->named_type ( "usize", backend->integer_type (true, backend->get_pointer_size ()), Linemap::predeclared_location ()); } - void visit (TyTy::ISizeType &type) override + void visit (TyTy::ISizeType &) override { translated = backend->named_type ( "isize", backend->integer_type (false, backend->get_pointer_size ()), |