mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Fix coverity unchecked return warning
This commit is contained in:
parent
d13cdd6427
commit
a25b5b65ff
1 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,8 @@ void RequiresAnalyzerContext::ProcessExpr(Expr* expr) {
|
|||
|
||||
bool RequiresAnalyzerContext::compute(DataDepElement* element) {
|
||||
RequiresAnalyzerContext visitor;
|
||||
element->Traverse(&visitor);
|
||||
// This result is intentionally ignored. We want to traverse, but always return
|
||||
// the same result.
|
||||
std::ignore = element->Traverse(&visitor);
|
||||
return visitor.requires_analyzer_context_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue