ruby bindings: Fix a compiler warning.

bindings/ruby/classes_wrap.cpp:10481:1: warning: control may reach end
  of non-void function [-Wreturn-type]
This commit is contained in:
Uwe Hermann 2017-06-08 23:55:58 +02:00
parent 35334baa90
commit 6324805018
1 changed files with 1 additions and 0 deletions

View 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. */
}
%}