summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2015-05-21 17:26:39 +0900
committerKouhei Sutou <kou@clear-code.com>2015-05-21 17:27:21 +0900
commit0e0e8bc77d2f3875b7469cd5f8d4e281f2a114a7 (patch)
treeeb287a09a1d74882f1c52e9d895585d98994407c /lib
parent4793b2818f3d5f38b8a9fcc8b479e10cfcfa2c02 (diff)
downloadffi-yajl-0e0e8bc77d2f3875b7469cd5f8d4e281f2a114a7.tar.gz
Suppress assigned but unused variable warning
% FORCE_FFI_YAJL=ffi ruby -w -I lib -e 'require "ffi_yajl"' ... lib/ffi_yajl/ffi/encoder.rb:56: warning: assigned but unused variable - length
Diffstat (limited to 'lib')
-rw-r--r--lib/ffi_yajl/ffi/encoder.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ffi_yajl/ffi/encoder.rb b/lib/ffi_yajl/ffi/encoder.rb
index f2338e4..bd8f985 100644
--- a/lib/ffi_yajl/ffi/encoder.rb
+++ b/lib/ffi_yajl/ffi/encoder.rb
@@ -53,7 +53,6 @@ module FFI_Yajl
if ( status = FFI_Yajl.yajl_gen_get_buf(yajl_gen, string_ptr, length_ptr) ) != 0
FFI_Yajl::Encoder.raise_error_for_status(status)
end
- length = length_ptr.read_int
string = string_ptr.get_pointer(0).read_string
FFI_Yajl.yajl_gen_free(yajl_gen)