diff --git a/ruby/ext/google/protobuf_c/defs.c b/ruby/ext/google/protobuf_c/defs.c index 7f1b7c4973..ea91853215 100644 --- a/ruby/ext/google/protobuf_c/defs.c +++ b/ruby/ext/google/protobuf_c/defs.c @@ -581,7 +581,7 @@ typedef struct { VALUE descriptor_pool; // Owns the upb_FieldDef. } FieldDescriptor; -VALUE cFieldDescriptor = Qnil; +static VALUE cFieldDescriptor = Qnil; static void FieldDescriptor_mark(void* _self) { FieldDescriptor* self = _self;