Fwd: Try to wrap Midnight Commander in Rust
Yury V. Zaytsev
yury at shurup.com
Sun Aug 15 09:30:51 UTC 2021
Hi Vitold,
Please don’t contact us using our private addresses, we don’t have the capacity to provide personal support for mc. I have forwarded your message to the development mailing list, maybe Andreas could have a look at this before next release…
Sent from my iPad
Begin forwarded message:
> From: Vitold S <vit1251 at gmail.com>
> Date: 15. August 2021 at 06:10:30 CEST
> To: yury at shurup.com
> Subject: Try to wrap Midnight Commander in Rust
>
>
> Hello,
>
> I am was try to make Rust wrapper for Midnight Commander in https://github.com/vit1251/mc-rs
>
> Since I start I receive a lot of warning message:
>
> warning: lib/event/manage.c: In function ‘mc_event_group_destroy_value’:
> warning: lib/event/manage.c:52:37: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 52 | g_ptr_array_foreach (callbacks, (GFunc) g_free, NULL);
> warning: | ^
> warning: lib/event/manage.c: In function ‘mc_event_get_event_group_by_name’:
> warning: lib/event/manage.c:169:30: warning: cast between incompatible function types from ‘gint (*)(const gchar *, const gchar *)’ {aka ‘int (*)(const char *, const char *)’} to ‘gint (*)(const void *, const void *, void *)’ {aka ‘int (*)(const void *, const void *, void *)’} [-Wcast-function-type]
> warning: 169 | g_tree_new_full ((GCompareDataFunc) g_ascii_strcasecmp,
> warning: | ^
> warning: lib/event/event.c: In function ‘mc_event_init’:
> warning: lib/event/event.c:62:26: warning: cast between incompatible function types from ‘gint (*)(const gchar *, const gchar *)’ {aka ‘int (*)(const char *, const char *)’} to ‘gint (*)(const void *, const void *, void *)’ {aka ‘int (*)(const void *, const void *, void *)’} [-Wcast-function-type]
> warning: 62 | g_tree_new_full ((GCompareDataFunc) g_ascii_strcasecmp,
> warning: | ^
> warning: lib/filehighlight/common.c: In function ‘mc_fhl_array_free’:
> warning: lib/filehighlight/common.c:61:44: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 61 | g_ptr_array_foreach (fhl->filters, (GFunc) mc_fhl_filter_free, NULL);
> warning: | ^
> warning: lib/search/search.c: In function ‘mc_search__conditions_free’:
> warning: lib/search/search.c:121:33: warning: cast between incompatible function types from ‘void (*)(mc_search_cond_t *)’ {aka ‘void (*)(struct mc_search_cond_struct *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 121 | g_ptr_array_foreach (array, (GFunc) mc_search__cond_struct_free, NULL);
> warning: | ^
> warning: lib/strutil/replace.c: In function ‘str_replace_all’:
> warning: lib/strutil/replace.c:112:39: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 112 | g_ptr_array_foreach (str_splints, (GFunc) g_free, NULL);
> warning: | ^
> warning: lib/widget/group.c: In function ‘group_default_callback’:
> warning: lib/widget/group.c:580:37: warning: cast between incompatible function types from ‘void (*)(Widget *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 580 | g_list_foreach (g->widgets, (GFunc) widget_destroy, NULL);
> warning: | ^
> warning: src/filemanager/boxes.c: In function ‘appearance_box’:
> warning: src/filemanager/boxes.c:665:38: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 665 | g_ptr_array_foreach (skin_names, (GFunc) g_free, NULL);
> warning: | ^
> warning: src/filemanager/treestore.c: In function ‘tree_store_notify_remove’:
> warning: src/filemanager/treestore.c:483:34: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(struct tree_entry *, void *)’ [-Wcast-function-type]
> warning: 483 | tree_store_remove_fn r = (tree_store_remove_fn) p->hook_fn;
> warning: | ^
> warning: src/filemanager/treestore.c: In function ‘tree_store_add_entry_remove_hook’:
> warning: src/filemanager/treestore.c:665:36: warning: cast between incompatible function types from ‘tree_store_remove_fn’ {aka ‘void (*)(struct tree_entry *, void *)’} to ‘void (*)(void *)’ [-Wcast-function-type]
> warning: 665 | add_hook (&remove_entry_hooks, (void (*)(void *)) callback, data);
> warning: | ^
> warning: src/filemanager/treestore.c: In function ‘tree_store_remove_entry_remove_hook’:
> warning: src/filemanager/treestore.c:673:39: warning: cast between incompatible function types from ‘tree_store_remove_fn’ {aka ‘void (*)(struct tree_entry *, void *)’} to ‘void (*)(void *)’ [-Wcast-function-type]
> warning: 673 | delete_hook (&remove_entry_hooks, (void (*)(void *)) callback);
> warning: | ^
> warning: src/viewer/growbuf.c: In function ‘mcview_growbuf_free’:
> warning: src/viewer/growbuf.c:99:50: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 99 | g_ptr_array_foreach (view->growbuf_blockptr, (GFunc) g_free, NULL);
> warning: | ^
> warning: src/editor/choosesyntax.c: In function ‘edit_syntax_dialog’:
> warning: src/editor/choosesyntax.c:144:33: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 144 | g_ptr_array_foreach (names, (GFunc) g_free, NULL);
> warning: | ^
> warning: src/editor/editbuffer.c: In function ‘edit_buffer_clean’:
> warning: src/editor/editbuffer.c:168:39: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 168 | g_ptr_array_foreach (buf->b1, (GFunc) g_free, NULL);
> warning: | ^
> warning: src/editor/editbuffer.c:174:39: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 174 | g_ptr_array_foreach (buf->b2, (GFunc) g_free, NULL);
> warning: | ^
> warning: src/editor/syntax.c: In function ‘context_rule_free’:
> warning: src/editor/syntax.c:162:42: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 162 | g_ptr_array_foreach (r->keyword, (GFunc) syntax_keyword_free, NULL);
> warning: | ^
> warning: src/editor/syntax.c: In function ‘edit_free_syntax_rules’:
> warning: src/editor/syntax.c:1445:39: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
> warning: 1445 | g_ptr_array_foreach (edit->rules, (GFunc) context_rule_free, NULL);
> warning: |
>
> Could you please fix these warning messages in next releases?
>
> Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20210815/36f1e940/attachment.html>
More information about the mc-devel
mailing list