bryancall opened a new pull request #7840:
URL: https://github.com/apache/trafficserver/pull/7840
```
../../../src/tscore/Regex.cc: In member function ‘bool Regex::exec(const
string_view&)’:
../../../src/tscore/Regex.cc:115:54: error: ‘ovector’ may be used
uninitialized [-Werror=maybe-uninitialized]
115 | return this->exec(str, ovector.data(), ovector.size());
| ~~~~~~~~~~~~^~
In file included from ../../../src/tscore/Regex.cc:24:
/usr/include/c++/11/array:176:7: note: by argument 1 of type ‘const
std::array<int, 30>*’ to ‘constexpr std::array<_Tp, _Nm>::size_type
std::array<_Tp, _Nm>::size() const [with _Tp = int; long unsigned int _Nm =
30]’ declared here
176 | size() const noexcept { return _Nm; }
| ^~~~
../../../src/tscore/Regex.cc:114:44: note: ‘ovector’ declared here
114 | std::array<int, DEFAULT_GROUP_COUNT * 3> ovector;
| ^~~~~~~
cc1plus: all warnings being treated as errors
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]