mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
address some script optimization compiler warnings under Linux
This commit is contained in:
parent
202c405a1e
commit
910a2f6c59
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace zeek::detail {
|
namespace zeek::detail {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue