aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/analysis
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-04-10 16:59:05 +0000
committerGitHub <noreply@github.com>2021-04-10 16:59:05 +0000
commitedc4a9549145861a2e71c552f06e53c860e39d9a (patch)
treedffc57c3681be7675e7ad9493b7e4256dc234279 /gcc/rust/analysis
parent9c97c8588321a106512affb2935b8ec1f836804f (diff)
parent114bd7b45ea3db56fbd07048857db102fe87821f (diff)
downloadgcc-edc4a9549145861a2e71c552f06e53c860e39d9a.zip
gcc-edc4a9549145861a2e71c552f06e53c860e39d9a.tar.gz
gcc-edc4a9549145861a2e71c552f06e53c860e39d9a.tar.bz2
Merge #348
348: Address miscellaneous '-Werror=unused-parameter' diagnostics [#336] r=philberty a=tschwinge #336 In file included from [...]/gcc/rust/ast/rust-ast-full.h:23, from [...]/gcc/rust/parse/rust-parse.h:21, from [...]/gcc/rust/rust-session-manager.cc:34: [...]/gcc/rust/ast/rust-expr.h: In member function ‘virtual void Rust::AST::RangeExpr::set_outer_attrs(std::vector<Rust::AST::Attribute>)’: [...]/gcc/rust/ast/rust-expr.h:3220:48: error: unused parameter ‘new_attrs’ [-Werror=unused-parameter] 3220 | void set_outer_attrs (std::vector<Attribute> new_attrs) override | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ [...]/gcc/rust/ast/rust-expr.h: In constructor ‘Rust::AST::IfLetExpr::IfLetExpr(std::vector<std::unique_ptr<Rust::AST::Pattern> >, std::unique_ptr<Rust::AST::Expr>, std::unique_ptr<Rust::AST::BlockExpr>, std::vector<Rust::AST::Attribute>, Location)’: [...]/gcc/rust/ast/rust-expr.h:4380:37: error: unused parameter ‘outer_attrs’ [-Werror=unused-parameter] 4380 | std::vector<Attribute> outer_attrs, Location locus) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from [...]/gcc/rust/backend/rust-compile-context.h:27, from [...]/gcc/rust/backend/rust-compile.h:24, from [...]/gcc/rust/rust-session-manager.cc:41: [...]/gcc/rust/backend/rust-compile-tyty.h: In member function ‘virtual void Rust::Compile::TyTyCompile::visit(Rust::TyTy::FnPtr&)’: [...]/gcc/rust/backend/rust-compile-tyty.h:67:28: error: unused parameter ‘type’ [-Werror=unused-parameter] 67 | void visit (TyTy::FnPtr &type) override { gcc_unreachable (); } | ~~~~~~~~~~~~~^~~~ [...]/gcc/rust/rust-gcc.cc: In member function ‘virtual Btype* Gcc_backend::function_ptr_type(Btype*, const std::vector<Btype*>&, Location)’: [...]/gcc/rust/rust-gcc.cc:998:42: error: unused parameter ‘locus’ [-Werror=unused-parameter] 998 | Location locus) | ~~~~~~~~~^~~~~ [...]/gcc/rust/rust-lang.cc: In function ‘void grs_langhook_init_options_struct(gcc_options*)’: [...]/gcc/rust/rust-lang.cc:153:55: error: unused parameter ‘opts’ [-Werror=unused-parameter] 153 | grs_langhook_init_options_struct (struct gcc_options *opts) | ~~~~~~~~~~~~~~~~~~~~^~~~ Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
Diffstat (limited to 'gcc/rust/analysis')
0 files changed, 0 insertions, 0 deletions