Enable more compiler warnings in the build system

"-pedantic -Wno-unknown-pragmas -Wimplicit-fallthrough"
This commit is contained in:
Alex Beregszaszi 2019-12-12 23:25:12 +00:00
parent 6ab8802601
commit eafcb42be7
4 changed files with 7 additions and 4 deletions

View File

@ -34,6 +34,9 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
add_compile_options(-Wall)
add_compile_options(-Wextra)
add_compile_options(-Werror)
add_compile_options(-pedantic)
add_compile_options(-Wno-unknown-pragmas)
add_compile_options(-Wimplicit-fallthrough)
# Configuration-specific compiler settings.
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -DETH_DEBUG")

View File

@ -65,7 +65,7 @@ struct EVMBuiltins
template<typename... Args> constexpr Pattern operator()(Args&&... _args) const
{
return {inst, {std::forward<Args>(_args)...}};
};
}
};
struct PatternGeneratorInstance
@ -74,7 +74,7 @@ struct EVMBuiltins
template<typename... Args> constexpr Pattern operator()(Args&&... _args) const
{
return {instruction, {std::forward<Args>(_args)...}};
};
}
};

View File

@ -2354,7 +2354,7 @@ string EnumType::canonicalName() const
size_t EnumType::numberOfMembers() const
{
return m_enum.members().size();
};
}
BoolResult EnumType::isExplicitlyConvertibleTo(Type const& _convertTo) const
{

View File

@ -29,7 +29,7 @@ using namespace std;
using namespace solidity::frontend;
// TODO: Fix Boost...
BOOST_TEST_DONT_PRINT_LOG_VALUE(solidity::bytes);
BOOST_TEST_DONT_PRINT_LOG_VALUE(solidity::bytes)
namespace solidity::util::test
{