Project

General

Profile

Actions

Bug #20445

closed

Backport 2571d5376a38c333b8fe85f1f9b2f9c2422c0ad9 to ruby_3_3

Added by mame (Yusuke Endoh) 11 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
[ruby-core:117652]

Description

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.

No data to display

Actions

Also available in: Atom PDF

Like0