mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
b3f35f703a
This patch suppresses warnings like this one: ``` /builddir/build/BUILD/solidity-0.8.18/libsolidity/ast/AST.h: In constructor 'solidity::frontend::FunctionDefinition::FunctionDefinition(int64_t, const solidity::frontend::ASTNode::SourceLocation&, solidity::frontend::ASTPointer<std::__cxx11::basic_string<char> >&, const solidity::frontend::ASTNode::SourceLocation&, solidity::frontend::Visibility, solidity::frontend::StateMutability, bool, solidity::langutil::Token, bool, solidity::frontend::ASTPointer<solidity::frontend::OverrideSpecifier>&, solidity::frontend::ASTPointer<solidity::frontend::StructuredDocumentation>&, solidity::frontend::ASTPointer<solidity::frontend::ParameterList>&, std::vector<std::shared_ptr<solidity::frontend::ModifierInvocation> >, solidity::frontend::ASTPointer<solidity::frontend::ParameterList>&, solidity::frontend::ASTPointer<solidity::frontend::Block>&)': /builddir/build/BUILD/solidity-0.8.18/libsolidity/ast/AST.h:926:69: error: redundant move in initialization [-Werror=redundant-move] 926 | CallableDeclaration(_id, _location, _name, std::move(_nameLocation), _visibility, _parameters, _isVirtual, _overrides, _returnParameters), | ~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/solidity-0.8.18/libsolidity/ast/AST.h:926:69: note: remove 'std::move' call ``` Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> |
||
---|---|---|
.. | ||
AST_accept.h | ||
AST.cpp | ||
AST.h | ||
ASTAnnotations.cpp | ||
ASTAnnotations.h | ||
ASTEnums.h | ||
ASTForward.h | ||
ASTJsonExporter.cpp | ||
ASTJsonExporter.h | ||
ASTJsonImporter.cpp | ||
ASTJsonImporter.h | ||
ASTUtils.cpp | ||
ASTUtils.h | ||
ASTVisitor.h | ||
CallGraph.cpp | ||
CallGraph.h | ||
ExperimentalFeatures.h | ||
TypeProvider.cpp | ||
TypeProvider.h | ||
Types.cpp | ||
Types.h |