This bogus -Warray-bounds still hits with GCC 17
Signed-off-by: Stephan Bergmann <stephan.bergmann@collabora.com> Change-Id: I986acdaee26da6b684afc51955ab658a0674d309 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4853 Tested-by: Jenkins CPCI <releng@collaboraoffice.com> Reviewed-by: Michael Stahl <michael.stahl@collabora.com> (cherry picked from commit 78330ecdc4f447a47cde4afe64e55dfab061ef27) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207169 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
committed by
Xisco Fauli
parent
60fdd8f4f8
commit
6c22a1050e
@@ -549,7 +549,7 @@ void ScDocument::SetNeedsListeningGroups( const std::vector<ScAddress>& rPosArra
|
||||
|
||||
namespace {
|
||||
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 16
|
||||
#if defined __GNUC__ && !defined __clang__ && (__GNUC__ == 16 || __GNUC__ == 17)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
@@ -570,7 +570,7 @@ public:
|
||||
p->StartListeners(*mpCxt, false);
|
||||
}
|
||||
};
|
||||
#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 16
|
||||
#if defined __GNUC__ && !defined __clang__ && (__GNUC__ == 16 || __GNUC__ == 17)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user