Permalink
Browse files

Fix unused variable warning in Ruby wrappers when using gcc -Wall

  • Loading branch information...
1 parent 122f61c commit 7b5eb19ca98be89440c661944b53211096542bda @wsfulton wsfulton committed Oct 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Lib/ruby/rubyprimtypes.swg
@@ -193,7 +193,7 @@ SWIG_AsVal_dec(unsigned long long)(VALUE obj, unsigned long long *val)
}
%fragment(SWIG_AsVal_frag(double),"header",fragment="SWIG_ruby_failed") {
-%ruby_aux_method(double, NUM2DBL, NUM2DBL(obj))
+%ruby_aux_method(double, NUM2DBL, NUM2DBL(obj); (void)type)
SWIGINTERN int
SWIG_AsVal_dec(double)(VALUE obj, double *val)

0 comments on commit 7b5eb19

Please sign in to comment.