mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
tweaks to address some compiler warnings
This commit is contained in:
parent
7f3993ca0e
commit
693fc14eb2
13 changed files with 44 additions and 27 deletions
|
@ -450,7 +450,7 @@ void GenIDDefs::EndConfluenceBlock(bool no_orig)
|
|||
|
||||
confluence_blocks.pop_back();
|
||||
|
||||
int bb = barrier_blocks.back();
|
||||
auto bb = barrier_blocks.back();
|
||||
if ( bb > 0 && confluence_blocks.size() == bb )
|
||||
barrier_blocks.pop_back();
|
||||
|
||||
|
@ -520,7 +520,7 @@ void GenIDDefs::TrackID(const ID* id, const ExprPtr& e)
|
|||
|
||||
// Ensure we track this identifier across all relevant
|
||||
// confluence regions.
|
||||
for ( int i = barrier_blocks.back(); i < confluence_blocks.size(); ++i )
|
||||
for ( auto i = barrier_blocks.back(); i < confluence_blocks.size(); ++i )
|
||||
// Add one because modified_IDs includes outer non-confluence
|
||||
// block.
|
||||
modified_IDs[i+1].insert(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue