mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libsolutil: Add missing include
This one is more obscure. It helps suppressing the following error while
compiling:
```
/builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:33:6: error: elaborated-type-specifier for a scoped enum must not use the 'class' keyword [-Werror]
33 | enum class Instruction: uint8_t;
| ~~~~ ^~~~~
| -----
/builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:33:23: error: found ':' in nested-name-specifier, expected '::'
33 | enum class Instruction: uint8_t;
| ^
| ::
/builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:33:12: error: 'Instruction' has not been declared
33 | enum class Instruction: uint8_t;
| ^~~~~~~~~~~
/builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:101:24: error: 'solidity::evmasm::Instruction' has not been declared
101 | bool hasOpcode(evmasm::Instruction _opcode) const;
| ^~~~~~
/builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.cpp:29:6: error: no declaration matches 'bool solidity::langutil::EVMVersion::hasOpcode(solidity::evmasm::Instruction) const'
29 | bool EVMVersion::hasOpcode(Instruction _opcode) const
| ^~~~~~~~~~
/builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:101:14: note: candidate is: 'bool solidity::langutil::EVMVersion::hasOpcode(int) const'
101 | bool hasOpcode(evmasm::Instruction _opcode) const;
| ^~~~~~~~~
/builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:43:7: note: 'class solidity::langutil::EVMVersion' defined here
43 | class EVMVersion:
| ^~~~~~~~~~
cc1plus: all warnings being treated as errors
```
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
parent
8f1668ffb8
commit
6a6bf303b5
@ -21,6 +21,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user