mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Suppress warnings by gcc-13 with -Og
This commit is contained in:
parent
0e0008da0f
commit
edaa27ce45
4 changed files with 6 additions and 4 deletions
4
symbol.c
4
symbol.c
|
@ -883,7 +883,7 @@ rb_gc_free_dsymbol(VALUE sym)
|
|||
VALUE
|
||||
rb_str_intern(VALUE str)
|
||||
{
|
||||
VALUE sym;
|
||||
VALUE sym = 0;
|
||||
|
||||
GLOBAL_SYMBOLS_LOCKING(symbols) {
|
||||
sym = lookup_str_sym_with_lock(symbols, str);
|
||||
|
@ -920,7 +920,7 @@ rb_str_intern(VALUE str)
|
|||
ID
|
||||
rb_sym2id(VALUE sym)
|
||||
{
|
||||
ID id;
|
||||
ID id = 0;
|
||||
if (STATIC_SYM_P(sym)) {
|
||||
id = STATIC_SYM2ID(sym);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue