summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2018-08-31 13:04:09 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2018-08-31 13:04:09 +0200
commitaf768ca0f1571532cf31d903713e42bdccacb8af (patch)
tree517de58b72ce132a9f85bbc1b8867a09e56293c6 /configure.ac
parent51c6b8cec423cf7f3a903f31648898f285226a48 (diff)
downloadglibmm-af768ca0f1571532cf31d903713e42bdccacb8af.tar.gz
Avoid compiler warnings from function pointer conversions
gcc8 -Wextra prints a warning when a single reinterpret_cast is used for conversion between different types of function pointers. The previous fix with a union in Glib::bitwise_equivalent_cast<>() is not standard C++. Rename the function to Glib::function_pointer_cast<>(), and use two reinterpret_casts as recommended in gcc's documentation. * glib/src/optiongroup.ccg: Use a reinterpret_cast to convert from a function pointer to void*. That's possible now. It's "conditionally supported", starting with C++11. See https://github.com/libsigcplusplus/libsigcplusplus/issues/8
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions