diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2015-08-21 09:00:40 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2015-08-21 09:00:40 -0700 |
commit | eb65c69e14fb711208ad5111cb9672f00864bb6d (patch) | |
tree | 4e009f0376780e5d167e467b0e9cfbe9af8f203b /ruby/ext/google/protobuf_c/protobuf.c | |
parent | 0cb84ee31fc2ac6e6f07c76a5dc20a20272d7516 (diff) | |
parent | d61e6adfcc82d4a1b3b3882f07b39c77b42eafc1 (diff) | |
download | protobuf-eb65c69e14fb711208ad5111cb9672f00864bb6d.tar.gz protobuf-eb65c69e14fb711208ad5111cb9672f00864bb6d.tar.bz2 protobuf-eb65c69e14fb711208ad5111cb9672f00864bb6d.zip |
Merge pull request #584 from haberman/cwarnings
Ruby: Conform to C89/C90 variable declaration rules.
Diffstat (limited to 'ruby/ext/google/protobuf_c/protobuf.c')
-rw-r--r-- | ruby/ext/google/protobuf_c/protobuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby/ext/google/protobuf_c/protobuf.c b/ruby/ext/google/protobuf_c/protobuf.c index ca0f7b7c..7cde4aec 100644 --- a/ruby/ext/google/protobuf_c/protobuf.c +++ b/ruby/ext/google/protobuf_c/protobuf.c @@ -83,10 +83,11 @@ ID descriptor_instancevar_interned; // This must be named "Init_protobuf_c" because the Ruby module is named // "protobuf_c" -- the VM looks for this symbol in our .so. void Init_protobuf_c() { - descriptor_instancevar_interned = rb_intern(kDescriptorInstanceVar); VALUE google = rb_define_module("Google"); VALUE protobuf = rb_define_module_under(google, "Protobuf"); VALUE internal = rb_define_module_under(protobuf, "Internal"); + + descriptor_instancevar_interned = rb_intern(kDescriptorInstanceVar); DescriptorPool_register(protobuf); Descriptor_register(protobuf); FieldDescriptor_register(protobuf); |