From: Uwe Hermann Date: Thu, 8 Jun 2017 21:55:58 +0000 (+0200) Subject: ruby bindings: Fix a compiler warning. X-Git-Tag: libsigrok-0.5.0~6 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6324805018987715902422732df27bc9841b1108;p=libsigrok.git ruby bindings: Fix a compiler warning. bindings/ruby/classes_wrap.cpp:10481:1: warning: control may reach end of non-void function [-Wreturn-type] --- diff --git a/bindings/ruby/classes.i b/bindings/ruby/classes.i index 5e4baf07..fab2a4df 100644 --- a/bindings/ruby/classes.i +++ b/bindings/ruby/classes.i @@ -113,6 +113,7 @@ static VALUE variant_to_ruby(Glib::VariantBase variant) } else { SWIG_exception(SWIG_TypeError, ("TODO: GVariant(" + variant.get_type().get_string() + ") -> Ruby").c_str()); } + return 0; /* Dummy, to avoid a compiler warning. */ } %}