diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2018-08-31 13:04:09 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2018-08-31 13:04:09 +0200 |
commit | af768ca0f1571532cf31d903713e42bdccacb8af (patch) | |
tree | 517de58b72ce132a9f85bbc1b8867a09e56293c6 /MSVC_NMake | |
parent | 51c6b8cec423cf7f3a903f31648898f285226a48 (diff) | |
download | glibmm-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 'MSVC_NMake')
0 files changed, 0 insertions, 0 deletions