Merge remote-tracking branch 'origin/topic/neverlord/hide-caf'

* origin/topic/neverlord/hide-caf:
  Fix GCC builds and string output for Broker errors
  Update to latest Broker without public CAF dep
This commit is contained in:
Robin Sommer 2022-02-07 16:24:06 +01:00
commit 5f1f005142
No known key found for this signature in database
GPG key ID: 6BEDA4DA6B8B23E3
34 changed files with 393 additions and 1066 deletions

View file

@ -2143,15 +2143,7 @@ void TableVal::SendToStore(const Val* index, const TableEntryVal* new_entry_val,
case ELEMENT_NEW:
case ELEMENT_CHANGED:
{
#ifndef __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
broker::optional<broker::timespan> expiry;
#ifndef __clang__
#pragma GCC diagnostic pop
#endif
std::optional<broker::timespan> expiry;
auto expire_time = GetExpireTime();
if ( expire_time == 0 )
// Entry is set to immediately expire. Let's not forward it.