Fix a deprecation warning compiling with GCC

This commit is contained in:
Jon Siwek 2020-07-01 09:57:23 -07:00
parent 4668378d91
commit 734af6b6d1
3 changed files with 11 additions and 2 deletions

View file

@ -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(); }