lib/pcre/RegexPointer: work around bogus -Wmaybe-uninitialized with GCC 11
This commit is contained in:
parent
85a5b7dec4
commit
a14ce4c7cb
@ -40,6 +40,13 @@
|
|||||||
|
|
||||||
#include <array>
|
#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 {
|
class RegexPointer {
|
||||||
protected:
|
protected:
|
||||||
pcre *re = nullptr;
|
pcre *re = nullptr;
|
||||||
@ -63,4 +70,8 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if GCC_CHECK_VERSION(11,0)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user