Enable more C++ compiler warnings

This commit is contained in:
Alex Beregszaszi
2020-12-10 21:03:58 +00:00
parent 90c693be09
commit bd641a5206
27 changed files with 96 additions and 26 deletions
+4
View File
@@ -34,6 +34,8 @@ using namespace std;
namespace solidity::frontend
{
namespace
{
/// Magic variables get negative ids for easy differentiation
int magicVariableToID(std::string const& _name)
{
@@ -113,6 +115,8 @@ inline vector<shared_ptr<MagicVariableDeclaration const>> constructMagicVariable
};
}
}
GlobalContext::GlobalContext(): m_magicVariables{constructMagicVariables()}
{
}