Skip to content

Instantly share code, notes, and snippets.

@LefterisJP
Created June 1, 2017 14:10
Show Gist options
  • Save LefterisJP/388c3ba5ad356f92a3b44e7efed89f9f to your computer and use it in GitHub Desktop.
Save LefterisJP/388c3ba5ad356f92a3b44e7efed89f9f to your computer and use it in GitHub Desktop.
implicit fallthrough errors
[ 45%] Building CXX object libsolidity/CMakeFiles/solidity.dir/codegen/ContractCompiler.cpp.o
/home/lefteris/ew/solidity/libsolidity/codegen/CompilerUtils.cpp: In member function ‘void dev::solidity::CompilerUtils::convertType(const dev::solidity::Type&, const dev::solidity::Type&, bool, bool)’:
/home/lefteris/ew/solidity/libsolidity/codegen/CompilerUtils.cpp:784:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
}
^
/home/lefteris/ew/solidity/libsolidity/codegen/CompilerUtils.cpp:786:2: note: here
default:
^~~~~~~
[ 46%] Building CXX object libsolidity/CMakeFiles/solidity.dir/codegen/ExpressionCompiler.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [libsolidity/CMakeFiles/solidity.dir/build.make:543: libsolidity/CMakeFiles/solidity.dir/codegen/CompilerUtils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/lefteris/ew/solidity/libsolidity/codegen/ExpressionCompiler.cpp: In member function ‘virtual bool dev::solidity::ExpressionCompiler::visit(const dev::solidity::MemberAccess&)’:
/home/lefteris/ew/solidity/libsolidity/codegen/ExpressionCompiler.cpp:1045:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
break;
^
/home/lefteris/ew/solidity/libsolidity/codegen/ExpressionCompiler.cpp:1047:2: note: here
case Type::Category::Integer:
^~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libsolidity/CMakeFiles/solidity.dir/build.make:591: libsolidity/CMakeFiles/solidity.dir/codegen/ExpressionCompiler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:275: libsolidity/CMakeFiles/solidity.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment