diff --git a/dbaccess/source/core/api/querycontainer.cxx b/dbaccess/source/core/api/querycontainer.cxx index 2b615a878468..c95216387df6 100644 --- a/dbaccess/source/core/api/querycontainer.cxx +++ b/dbaccess/source/core/api/querycontainer.cxx @@ -84,7 +84,14 @@ void OQueryContainer::init() m_aDocuments.push_back(m_aDocumentMap.emplace(definitionName, Documents::mapped_type()).first); } +#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 16 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" +#endif setElementApproval( std::make_shared( m_xConnection, ObjectNameApproval::TypeQuery ) ); +#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 16 +#pragma GCC diagnostic pop +#endif } rtl::Reference OQueryContainer::create(