mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18: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
|
@ -494,12 +494,12 @@ private:
|
|||
// First form returns nil if there's nothing live after i.
|
||||
// Second form returns insts1.size() in that case.
|
||||
ZInstI* FirstLiveInst(ZInstI* i, bool follow_gotos = false);
|
||||
int FirstLiveInst(int i, bool follow_gotos = false);
|
||||
bro_uint_t FirstLiveInst(bro_uint_t i, bool follow_gotos = false);
|
||||
|
||||
// Same, but not including i.
|
||||
ZInstI* NextLiveInst(ZInstI* i, bool follow_gotos = false)
|
||||
{
|
||||
if ( i->inst_num == insts1.size() - 1 )
|
||||
if ( i->inst_num == static_cast<int>(insts1.size()) - 1 )
|
||||
return nullptr;
|
||||
return FirstLiveInst(insts1[i->inst_num + 1], follow_gotos);
|
||||
}
|
||||
|
@ -511,12 +511,12 @@ private:
|
|||
// into insts1; any labels associated with it are transferred
|
||||
// to its next live successor, if any.
|
||||
void KillInst(ZInstI* i) { KillInst(i->inst_num); }
|
||||
void KillInst(int i);
|
||||
void KillInst(bro_uint_t i);
|
||||
|
||||
// The same, but kills any successor instructions until finding
|
||||
// one that's labeled.
|
||||
void KillInsts(ZInstI* i) { KillInsts(i->inst_num); }
|
||||
void KillInsts(int i);
|
||||
void KillInsts(bro_uint_t i);
|
||||
|
||||
// The first of these is used as we compile down to ZInstI's.
|
||||
// The second is the final intermediary code. They're separate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue