summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--o3tl/qa/test-string_view.cxx4
1 files changed, 4 insertions, 0 deletions
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: */