We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75beff0 commit 6b216d0Copy full SHA for 6b216d0
libsolidity/analysis/SyntaxChecker.cpp
@@ -150,7 +150,10 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
150
else
151
m_sourceUnit->annotation().useABICoderV2 = (_pragma.literals()[1] == "v2");
152
153
- if (!*m_sourceUnit->annotation().useABICoderV2)
+ if (
154
+ m_sourceUnit->annotation().useABICoderV2.set() &&
155
+ !*m_sourceUnit->annotation().useABICoderV2
156
+ )
157
m_errorReporter.warning(
158
9511_error,
159
_pragma.location(),
0 commit comments