suppress uninitialized variable warnings

Starting GCC 7, warnings about uninitialized variables are issued around
them.  Such warnings could be false positives (all versions of clang do
not warn), but adding initializers there could never be bad things.
This commit is contained in:
卜部昌平 2020-02-20 14:02:01 +09:00
parent f7048f9d55
commit aa44b29030
2 changed files with 2 additions and 2 deletions

View File

@ -3409,7 +3409,7 @@ rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret)
size_t numbytes;
int nlz_bits_in_msbyte;
size_t numwords;
size_t nlz_bits;
size_t nlz_bits = 0;
if (word_numbits == 0)
return (size_t)-1;

View File

@ -894,7 +894,7 @@ rb_method_entry_at(VALUE klass, ID id)
static inline rb_method_entry_t*
search_method(VALUE klass, ID id, VALUE *defined_class_ptr)
{
rb_method_entry_t *me;
rb_method_entry_t *me = NULL;
RB_DEBUG_COUNTER_INC(mc_search);