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
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
3.2.0-dev.828 | 2020-07-01 09:57:23 -0700
|
||||||
|
|
||||||
|
* Fix a deprecation warning compiling with GCC (Jon Siwek, Corelight)
|
||||||
|
|
||||||
3.2.0-dev.827 | 2020-06-30 16:54:22 -0700
|
3.2.0-dev.827 | 2020-06-30 16:54:22 -0700
|
||||||
|
|
||||||
* Deprecate plugin::HookType and plugin::component::Type in a different way (Tim Wojtulewicz, Corelight)
|
* Deprecate plugin::HookType and plugin::component::Type in a different way (Tim Wojtulewicz, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
3.2.0-dev.827
|
3.2.0-dev.828
|
||||||
|
|
|
@ -421,7 +421,12 @@ public:
|
||||||
|
|
||||||
[[deprecated("Remove in v4.1. Use GetIndexTypes().")]]
|
[[deprecated("Remove in v4.1. Use GetIndexTypes().")]]
|
||||||
const type_list* IndexTypes() const
|
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
|
const std::vector<IntrusivePtr<Type>>& GetIndexTypes() const
|
||||||
{ return indices->GetTypes(); }
|
{ return indices->GetTypes(); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue