mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixed Windows warnings
This commit is contained in:
parent
11d67369bd
commit
a1ce66b304
@ -185,7 +185,8 @@ bool ExpressionCompiler::visit(Conditional const& _condition)
|
||||
utils().convertType(*_condition.falseExpression().annotation().type, *_condition.annotation().type);
|
||||
eth::AssemblyItem endTag = m_context.appendJumpToNew();
|
||||
m_context << trueTag;
|
||||
m_context.adjustStackOffset(-_condition.annotation().type->sizeOnStack());
|
||||
int offset = _condition.annotation().type->sizeOnStack();
|
||||
m_context.adjustStackOffset(-offset);
|
||||
_condition.trueExpression().accept(*this);
|
||||
utils().convertType(*_condition.trueExpression().annotation().type, *_condition.annotation().type);
|
||||
m_context << endTag;
|
||||
|
@ -36,7 +36,7 @@ bool Why3Translator::process(SourceUnit const& _source)
|
||||
appendPreface();
|
||||
_source.accept(*this);
|
||||
}
|
||||
catch (FatalError& _e)
|
||||
catch (FatalError& /*_e*/)
|
||||
{
|
||||
solAssert(m_errorOccured, "");
|
||||
}
|
||||
|
@ -22,7 +22,16 @@
|
||||
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4535) // calling _set_se_translator requires /EHa
|
||||
#endif
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#include <libdevcore/Hash.h>
|
||||
#include <test/libsolidity/solidityExecutionFramework.h>
|
||||
|
||||
|
@ -22,7 +22,16 @@
|
||||
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4535) // calling _set_se_translator requires /EHa
|
||||
#endif
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#include <libdevcore/Hash.h>
|
||||
#include <test/libsolidity/solidityExecutionFramework.h>
|
||||
|
||||
|
@ -102,7 +102,7 @@ parseAnalyseAndReturnError(string const& _source, bool _reportWarnings = false)
|
||||
{
|
||||
return make_pair(sourceUnit, std::make_shared<Error::Type const>(_e.type()));
|
||||
}
|
||||
catch (Exception const& _exception)
|
||||
catch (Exception const& /*_exception*/)
|
||||
{
|
||||
return make_pair(sourceUnit, nullptr);
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ bool successParse(std::string const& _source)
|
||||
if (!sourceUnit)
|
||||
return false;
|
||||
}
|
||||
catch (FatalError const& _exception)
|
||||
catch (FatalError const& /*_exception*/)
|
||||
{
|
||||
if (Error::containsErrorOfType(errors, Error::Type::ParserError))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user