Suppress an unused-but-set-variable warning [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-05-17 12:47:01 +09:00
parent 1f537dc62d
commit 8a907da0f6
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -2373,7 +2373,7 @@ autoload_delete(VALUE mod, ID id)
/* Qfalse can indicate already deleted */ /* Qfalse can indicate already deleted */
if (load != Qfalse) { if (load != Qfalse) {
ele = get_autoload_data((VALUE)load, &ac); ele = get_autoload_data((VALUE)load, &ac);
VM_ASSERT(ele); if (!ele) VM_ASSERT(ele);
/* /*
* we must delete here to avoid "already initialized" warnings * we must delete here to avoid "already initialized" warnings
* with parallel autoload. Using list_del_init here so list_del * with parallel autoload. Using list_del_init here so list_del
@ -2390,7 +2390,8 @@ autoload_delete(VALUE mod, ID id)
} }
static int static int
autoload_by_someone_else(struct autoload_data *ele) { autoload_by_someone_else(struct autoload_data *ele)
{
return ele->mutex != Qnil && !rb_mutex_owned_p(ele->mutex); return ele->mutex != Qnil && !rb_mutex_owned_p(ele->mutex);
} }
@ -2451,7 +2452,8 @@ rb_autoloading_value(VALUE mod, ID id, VALUE* value, rb_const_flag_t *flag)
} }
static int static int
autoload_by_current(struct autoload_data *ele) { autoload_by_current(struct autoload_data *ele)
{
return ele->mutex != Qnil && rb_mutex_owned_p(ele->mutex); return ele->mutex != Qnil && rb_mutex_owned_p(ele->mutex);
} }