o3tl/qa/test-string_view.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 5a945e22ee5d51faf3e0ff1acabe79ad615e76bc
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Nov 30 09:02:44 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Nov 30 09:33:06 2021 +0100

    disable test under gcc 11.2.0
    
    Change-Id: Ic0d19cf827bc04026b5adf88bd5eb0a84e9dc270
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126080
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/o3tl/qa/test-string_view.cxx b/o3tl/qa/test-string_view.cxx
index 61145613693b..be1d356bdc61 100644
--- a/o3tl/qa/test-string_view.cxx
+++ b/o3tl/qa/test-string_view.cxx
@@ -20,6 +20,9 @@
 #include <rtl/string.hxx>
 #include <rtl/ustring.hxx>
 
+// gcc 11.2.0 triggers a spurious -Werror=stringop-overread
+#if !(__GNUC__ == 11 && __GNUC_MINOR__ == 2)
+
 namespace CppUnit
 {
 template <> struct assertion_traits<std::u16string_view>
@@ -587,5 +590,6 @@ private:
 
 CPPUNIT_TEST_SUITE_REGISTRATION(Test);
 }
+#endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */

Reply via email to