Issue #20445 has been reported by mame (Yusuke Endoh).
----------------------------------------
Bug #20445: Backport 2571d5376a38c333b8fe85f1f9b2f9c2422c0ad9 to ruby_3_3
https://bugs.ruby-lang.org/issues/20445
* Author: mame (Yusuke Endoh)
* Status: Closed
* ruby -v: ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: REQUIRED
----------------------------------------
Building Ruby 3.3.1 prints the following warning:
```
regexec.c: In function 'match_at':
regexec.c:2598:59: warning: 'stkp' may be used uninitialized
[-Wmaybe-uninitialized]
2598 | if (*pbegin == OP_REPEAT_INC) stkp->u.repeat.count--;\
| ~~~~~~~~~~~~~~~~~~~~^~
regexec.c:3852:11: note: in expansion of macro 'CHECK_MATCH_CACHE'
3852 | CHECK_MATCH_CACHE;
| ^~~~~~~~~~~~~~~~~
regexec.c:2297:18: note: 'stkp' was declared here
2297 | OnigStackType *stkp; /* used as any purpose. */
| ^~~~
```
2571d5376a38c333b8fe85f1f9b2f9c2422c0ad9 will remove it.
--
https://bugs.ruby-lang.org/