mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Fix a deprecation warning compiling with GCC
This commit is contained in:
parent
4668378d91
commit
734af6b6d1
3 changed files with 11 additions and 2 deletions
|
@ -421,7 +421,12 @@ public:
|
|||
|
||||
[[deprecated("Remove in v4.1. Use GetIndexTypes().")]]
|
||||
const type_list* IndexTypes() const
|
||||
{ return indices->Types(); }
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
return indices->Types();
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
const std::vector<IntrusivePtr<Type>>& GetIndexTypes() const
|
||||
{ return indices->GetTypes(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue