mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
GH-1200: ignore a maybe-uninitialized warning
This commit is contained in:
parent
f9f6140c15
commit
164cac2563
1 changed files with 3 additions and 0 deletions
|
@ -2192,7 +2192,10 @@ void TableVal::SendToStore(const Val* index, const TableEntryVal* new_entry_val,
|
|||
case ELEMENT_NEW:
|
||||
case ELEMENT_CHANGED:
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
broker::optional<broker::timespan> expiry;
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
auto expire_time = GetExpireTime();
|
||||
if ( expire_time == 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue