Hi Peter,
On 10/03/2018 04:10 PM, Peter Meerwald-Stadler wrote:
Reported by Ross Burton
gweb/giognutls.c: In function ‘g_io_gnutls_dispatch’:
gweb/giognutls.c:307:17: error: cast between incompatible function types from
‘GSourceFunc’ {aka ‘int (*)$
I've applied this part,
tools/session-utils.c: In function ‘util_test_add’:
tools/session-utils.c:234:4: error: cast between incompatible function types from ‘void
(*)(const void *)$
(GTestFixtureFunc) run_test_cb,
tools/session-utils.c:235:4: error: cast between incompatible function types from ‘void
(*)(void *)’ to ‘$
(GTestFixtureFunc) g_free);
but this one no. Older gcc will barf with
tools/session-utils.c:29:32: warning: unknown option after ‘#pragma GCC
diagnostic’ kind [-Wpragmas]
#pragma GCC diagnostic ignored "-Wcast-function-type"
^~~~~~~~~~~~~~~~~~~~~~
Google tells me we either try '-Wcast-function-type' on a dummy C file
and then do some of the configure magic. But I think it would be better
just to fix the code instead.
Thanks,
Daniel