diff options
author | Alex Polcyn <apolcyn@google.com> | 2016-07-10 19:08:54 -0700 |
---|---|---|
committer | Alex Polcyn <apolcyn@google.com> | 2016-07-10 20:19:35 -0700 |
commit | b72cc3dd871f4b0e72519c8bea3577c61e8abd83 (patch) | |
tree | f267e6af18e0c8f8a1b96a6ff894a7a375493439 /src/ruby/ext | |
parent | d788b458cf8e229aad25afc04ad5ec85e24537a3 (diff) |
fixed unreferenced self C parameters
Diffstat (limited to 'src/ruby/ext')
-rw-r--r-- | src/ruby/ext/grpc/rb_compression_options.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ruby/ext/grpc/rb_compression_options.c b/src/ruby/ext/grpc/rb_compression_options.c index 2d3be4c7d0..5139826246 100644 --- a/src/ruby/ext/grpc/rb_compression_options.c +++ b/src/ruby/ext/grpc/rb_compression_options.c @@ -169,6 +169,7 @@ grpc_compression_level grpc_rb_compression_options_level_name_to_value_internal( * Raises an exception for unrecognized level names. */ VALUE grpc_rb_compression_options_level_name_to_value(VALUE self, VALUE level_name) { + (void)self; return INT2NUM((int)grpc_rb_compression_options_level_name_to_value_internal( level_name)); } @@ -215,6 +216,7 @@ void grpc_rb_compression_options_algorithm_name_to_value_internal( VALUE grpc_rb_compression_options_algorithm_name_to_value( VALUE self, VALUE algorithm_name) { grpc_compression_algorithm algorithm_value; + (void)self; grpc_rb_compression_options_algorithm_name_to_value_internal(&algorithm_value, algorithm_name); @@ -324,6 +326,7 @@ VALUE grpc_rb_compression_options_level_value_to_name_internal( /* Wrapper of internal method that makes it available for use and testing. */ VALUE grpc_rb_compression_options_level_value_to_name(VALUE self, VALUE compression_value) { + (void)self; Check_Type(compression_value, T_FIXNUM); return grpc_rb_compression_options_level_value_to_name_internal( (grpc_compression_level)NUM2INT(compression_value)); @@ -346,9 +349,9 @@ VALUE grpc_rb_compression_options_algorithm_value_to_name_internal( */ VALUE grpc_rb_compression_options_algorithm_value_to_name( VALUE self, VALUE algorithm_value) { - grpc_compression_algorithm algorithm_internal_value; - algorithm_internal_value = + grpc_compression_algorithm algorithm_internal_value = (grpc_compression_algorithm)NUM2INT(algorithm_value); + (void)self; return grpc_rb_compression_options_algorithm_value_to_name_internal( algorithm_internal_value); |