(find_widget_type): Make Solaris Studio happy

Make Solaris Studio 12.4 happy.

"dialog.c", line 1029: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const void
        argument : pointer to function (...) returning enum (...)

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2016-03-15 19:03:19 +00:00 committed by Andrew Borodin
parent 72258dcca6
commit 284a19aff1
1 changed files with 1 additions and 1 deletions

View File

@ -1042,7 +1042,7 @@ find_widget_type (const WDialog * h, widget_cb_fn callback)
{
GList *w;
w = g_list_find_custom (h->widgets, callback, dlg_find_widget_callback);
w = g_list_find_custom (h->widgets, (gconstpointer) callback, dlg_find_widget_callback);
return (w == NULL) ? NULL : WIDGET (w->data);
}