]> sigrok.org Git - libsigrok.git/commitdiff
ruby bindings: Fix a compiler warning.
authorUwe Hermann <redacted>
Thu, 8 Jun 2017 21:55:58 +0000 (23:55 +0200)
committerUwe Hermann <redacted>
Fri, 9 Jun 2017 21:54:41 +0000 (23:54 +0200)
  bindings/ruby/classes_wrap.cpp:10481:1: warning: control may reach end
  of non-void function [-Wreturn-type]

bindings/ruby/classes.i

index 5e4baf07db74eaa7cdadaedec9340acb48d11641..fab2a4df286499bc46560d0908dff7551edba7c4 100644 (file)
@@ -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. */
 }
 %}