mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
GH-572: Mark MemoryAllocation() and related methods deprecated
This commit is contained in:
parent
e6e41ac5d9
commit
a7fd34375f
31 changed files with 158 additions and 6 deletions
|
@ -335,6 +335,8 @@ unsigned int TypeList::MemoryAllocation() const
|
|||
{
|
||||
unsigned int size = 0;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
for ( const auto& t : types )
|
||||
size += t->MemoryAllocation();
|
||||
|
||||
|
@ -343,6 +345,7 @@ unsigned int TypeList::MemoryAllocation() const
|
|||
return Type::MemoryAllocation()
|
||||
+ padded_sizeof(*this) - padded_sizeof(Type)
|
||||
+ size;
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
int IndexType::MatchesIndex(detail::ListExpr* const index) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue