X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fruby%2Fclasses.i;h=13496a86bb98fc64fc181300aaf2031b19e2ef76;hb=b51288e3da87626637d8c11a5cb22918d0e60ba8;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. */ } %}