diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/pcre/RegexPointer.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/pcre/RegexPointer.hxx b/src/lib/pcre/RegexPointer.hxx index 7311d0407..cb7e730ba 100644 --- a/src/lib/pcre/RegexPointer.hxx +++ b/src/lib/pcre/RegexPointer.hxx @@ -40,6 +40,13 @@ #include <array> +#if GCC_CHECK_VERSION(11,0) +#pragma GCC diagnostic push +/* bogus GCC 11 warning "ovector may be used uninitialized" in the + ovector.size() call */ +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif + class RegexPointer { protected: pcre *re = nullptr; @@ -63,4 +70,8 @@ public: } }; +#if GCC_CHECK_VERSION(11,0) +#pragma GCC diagnostic pop +#endif + #endif |