diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-04-02 20:55:12 +0200 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-04-05 10:37:11 +0100 |
commit | 7d3616a63b66203f6a7cb95cf9685ad7c0d8e194 (patch) | |
tree | a0fb3a33b3db6ad8cfb347f7df79e8af4f88574b /gcc | |
parent | 62550489ce87c5ec384611d40ff6d02fb6c3bf09 (diff) | |
download | gcc-7d3616a63b66203f6a7cb95cf9685ad7c0d8e194.zip gcc-7d3616a63b66203f6a7cb95cf9685ad7c0d8e194.tar.gz gcc-7d3616a63b66203f6a7cb95cf9685ad7c0d8e194.tar.bz2 |
Address '[...]/gcc/rust/parse/rust-parse-impl.h:4896:8: error: variable ‘has_colon’ set but not used [-Werror=unused-but-set-variable]' diagnostic [#336]
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 86b8d94..2b3ecd2 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -4893,13 +4893,11 @@ Parser<ManagedTokenSource>::parse_trait_type ( const_TokenPtr ident_tok = expect_token (IDENTIFIER); Identifier ident = ident_tok->get_str (); - bool has_colon = false; std::vector<std::unique_ptr<AST::TypeParamBound> > bounds; // parse optional colon if (lexer.peek_token ()->get_id () == COLON) { - has_colon = true; lexer.skip_token (); // parse optional type param bounds |