]> sigrok.org Git - libsigrok.git/blobdiff - bindings/ruby/classes.i
dcttech-usbrelay: adjust serial number and connection string logic
[libsigrok.git] / bindings / ruby / classes.i
index 5e4baf07db74eaa7cdadaedec9340acb48d11641..13496a86bb98fc64fc181300aaf2031b19e2ef76 100644 (file)
@@ -41,10 +41,10 @@ which provides access to the error code and description."
 %module(docstring=DOCSTRING) sigrok
 
 %{
+#include "config.h"
+
 #include <stdio.h>
 #include <glibmm.h>
-
-#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. */
 }
 %}