mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Enable more compiler warnings in the build system
"-pedantic -Wno-unknown-pragmas -Wimplicit-fallthrough"
This commit is contained in:
parent
6ab8802601
commit
eafcb42be7
@ -34,6 +34,9 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
|
|||||||
add_compile_options(-Wall)
|
add_compile_options(-Wall)
|
||||||
add_compile_options(-Wextra)
|
add_compile_options(-Wextra)
|
||||||
add_compile_options(-Werror)
|
add_compile_options(-Werror)
|
||||||
|
add_compile_options(-pedantic)
|
||||||
|
add_compile_options(-Wno-unknown-pragmas)
|
||||||
|
add_compile_options(-Wimplicit-fallthrough)
|
||||||
|
|
||||||
# Configuration-specific compiler settings.
|
# Configuration-specific compiler settings.
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -DETH_DEBUG")
|
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -DETH_DEBUG")
|
||||||
|
@ -65,7 +65,7 @@ struct EVMBuiltins
|
|||||||
template<typename... Args> constexpr Pattern operator()(Args&&... _args) const
|
template<typename... Args> constexpr Pattern operator()(Args&&... _args) const
|
||||||
{
|
{
|
||||||
return {inst, {std::forward<Args>(_args)...}};
|
return {inst, {std::forward<Args>(_args)...}};
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PatternGeneratorInstance
|
struct PatternGeneratorInstance
|
||||||
@ -74,7 +74,7 @@ struct EVMBuiltins
|
|||||||
template<typename... Args> constexpr Pattern operator()(Args&&... _args) const
|
template<typename... Args> constexpr Pattern operator()(Args&&... _args) const
|
||||||
{
|
{
|
||||||
return {instruction, {std::forward<Args>(_args)...}};
|
return {instruction, {std::forward<Args>(_args)...}};
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -2354,7 +2354,7 @@ string EnumType::canonicalName() const
|
|||||||
size_t EnumType::numberOfMembers() const
|
size_t EnumType::numberOfMembers() const
|
||||||
{
|
{
|
||||||
return m_enum.members().size();
|
return m_enum.members().size();
|
||||||
};
|
}
|
||||||
|
|
||||||
BoolResult EnumType::isExplicitlyConvertibleTo(Type const& _convertTo) const
|
BoolResult EnumType::isExplicitlyConvertibleTo(Type const& _convertTo) const
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ using namespace std;
|
|||||||
using namespace solidity::frontend;
|
using namespace solidity::frontend;
|
||||||
|
|
||||||
// TODO: Fix Boost...
|
// TODO: Fix Boost...
|
||||||
BOOST_TEST_DONT_PRINT_LOG_VALUE(solidity::bytes);
|
BOOST_TEST_DONT_PRINT_LOG_VALUE(solidity::bytes)
|
||||||
|
|
||||||
namespace solidity::util::test
|
namespace solidity::util::test
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user