summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-20 14:02:01 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-03-04 12:30:42 +0900
commitaa44b29030208106e75c12c3325350ebad4161b8 (patch)
treed28883113b410fe7079171f82ea80e3ba8921aad /vm_method.c
parentf7048f9d55bb6c5ad656950a5e0c3550465d08c4 (diff)
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.
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 1bcec9bc5f..d1afb88e40 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -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);