address some script optimization compiler warnings under Linux

This commit is contained in:
Vern Paxson 2024-08-09 09:27:59 -07:00 committed by Arne Welzel
parent 202c405a1e
commit 910a2f6c59
2 changed files with 2 additions and 1 deletions

View file

@ -591,7 +591,7 @@ const ZAMStmt ZAMCompiler::TypeSwitch(const SwitchStmt* sw, const NameExpr* v, c
int ntypes = type_map->size(); int ntypes = type_map->size();
auto aux = new ZInstAux(ntypes); auto aux = new ZInstAux(ntypes);
for ( auto i = 0; i < type_map->size(); ++i ) { for ( size_t i = 0; i < type_map->size(); ++i ) {
auto& tm = (*type_map)[i]; auto& tm = (*type_map)[i];
auto id_i = tm.first; auto id_i = tm.first;
auto id_case = tm.second; auto id_case = tm.second;

View file

@ -5,6 +5,7 @@
#pragma once #pragma once
#include <string> #include <string>
#include <unordered_map>
namespace zeek::detail { namespace zeek::detail {