Skip to content

Commit 0e463ab

Browse files
Natspect memory-safe annotation deprecation warning
1 parent 08c4e0c commit 0e463ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libsolidity/analysis/DocStringTagParser.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ bool DocStringTagParser::visit(InlineAssembly const& _assembly)
211211
"otherwise only use the NatSpec tag."
212212
);
213213
_assembly.annotation().markedMemorySafe = true;
214+
m_errorReporter.warning(
215+
2424_error,
216+
_assembly.location(),
217+
"Natspec memory safe annotation for inline assembly is deprecated and scheduled for removal in the next breaking version (0.9)."
218+
);
214219
}
215220
else
216221
m_errorReporter.warning(

0 commit comments

Comments
 (0)