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.
Argh, I am an idiot. I pushed the changes a well. So it works on gcc 8.1
but not on older version. I'll fix it this evening...