X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fruby%2Fclasses.i;h=13496a86bb98fc64fc181300aaf2031b19e2ef76;hb=1d2f9963abc10554ee0b36c6a1cf18649d4212c0;hp=5e4baf07db74eaa7cdadaedec9340acb48d11641;hpb=f504779c120713727d2d01cbd3ad38175a829a4f;p=libsigrok.git diff --git a/bindings/ruby/classes.i b/bindings/ruby/classes.i index 5e4baf07..13496a86 100644 --- a/bindings/ruby/classes.i +++ b/bindings/ruby/classes.i @@ -41,10 +41,10 @@ which provides access to the error code and description." %module(docstring=DOCSTRING) sigrok %{ +#include "config.h" + #include #include - -#include "config.h" %} %include "../swig/templates.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. */ } %}