From: Kouhei S. <nu...@co...> - 2017-09-17 08:17:59
|
Kouhei Sutou 2017-09-17 15:35:24 +0900 (Sun, 17 Sep 2017) New Revision: c07a52aa6010f4cef16a0521dc7ab16e14e9aa28 https://github.com/ruby-gnome2/ruby-gnome2/commit/c07a52aa6010f4cef16a0521dc7ab16e14e9aa28 Message: gi: suppress a "fall through" warning Modified files: gobject-introspection/ext/gobject-introspection/rb-gi-argument.c Modified: gobject-introspection/ext/gobject-introspection/rb-gi-argument.c (+8 -1) =================================================================== --- gobject-introspection/ext/gobject-introspection/rb-gi-argument.c 2017-09-16 23:56:46 +0900 (3a4cd7e64) +++ gobject-introspection/ext/gobject-introspection/rb-gi-argument.c 2017-09-17 15:35:24 +0900 (a28fe9a0e) @@ -1155,8 +1155,15 @@ rb_gi_argument_to_ruby_ghash(GIArgument *argument, GITypeInfo *type_info) g_base_info_unref(value_type_info); rb_argument = rb_gi_argument_to_ruby_ghash_utf8_utf8(argument->v_pointer); - break; + } else { + g_base_info_unref(key_type_info); + g_base_info_unref(value_type_info); + rb_raise(rb_eNotImpError, + "TODO: GIArgument(GHash)[%s][%s] -> Ruby", + g_type_tag_to_string(key_type_tag), + g_type_tag_to_string(value_type_tag)); } + break; case GI_TYPE_TAG_FILENAME: case GI_TYPE_TAG_ARRAY: case GI_TYPE_TAG_INTERFACE: |