diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-04-02 21:11:21 +0200 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-04-05 10:48:43 +0100 |
commit | f0ad7aefdc64e7b770aed5e2cce7bd9bacbd4610 (patch) | |
tree | e341c066b7a88a58818f20dd87cc38c27f5fe4af | |
parent | 419b492b39bec22dddb147340fd6a0f9ee12165b (diff) | |
download | gcc-f0ad7aefdc64e7b770aed5e2cce7bd9bacbd4610.zip gcc-f0ad7aefdc64e7b770aed5e2cce7bd9bacbd4610.tar.gz gcc-f0ad7aefdc64e7b770aed5e2cce7bd9bacbd4610.tar.bz2 |
Address '[...]/gcc/rust/expand/rust-macro-expand.cc:3228:1: error: control reaches end of non-void function [-Werror=return-type]' diagnostic [#336]
The only caller is currently '#if 0'ed, too.
-rw-r--r-- | gcc/rust/expand/rust-macro-expand.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.cc b/gcc/rust/expand/rust-macro-expand.cc index 496b451..bde5a19 100644 --- a/gcc/rust/expand/rust-macro-expand.cc +++ b/gcc/rust/expand/rust-macro-expand.cc @@ -3183,6 +3183,7 @@ MacroExpander::expand_cfg_macro (AST::MacroInvocData &invoc) return AST::Literal ("false", AST::Literal::BOOL, CORETYPE_BOOL); } +#if 0 AST::ASTFragment MacroExpander::expand_decl_macro (AST::MacroInvocData &invoc, AST::MacroRulesDefinition &rules_def) @@ -3226,6 +3227,7 @@ MacroExpander::expand_decl_macro (AST::MacroInvocData &invoc, * all the time, while still allowing the heterogenous storage of token trees. */ } +#endif void MacroExpander::expand_invoc (std::unique_ptr<AST::MacroInvocation> &invoc) |