dxx-rebirth/common
Kp fd0238cb6b Silence gcc-8 -Wcast-function-type in except.cpp
gcc-8 adds a new warning controlled by -Wcast-function-type, which is
implied on by Rebirth's default options.  This new warning rejects
attempts to reinterpret_cast between function pointer types.  While this
might provide some value when the function pointer was derived by taking
the address of a properly declared function provided elsewhere in the
same program, it is wrong when the function pointer is returned by an
external library call, such as GetProcAddress, which always returns a
placeholder type instead of the actual type of the target function.
Switch to using a union with type-punning, which achieves the same
effect as the cast, but does not count as a cast, and therefore does not
provoke the warning.

References: <https://github.com/dxx-rebirth/dxx-rebirth/issues/388>
2018-07-15 04:43:55 +00:00
..
2d Make grs_main_bitmap::grs_main_bitmap() clear the whole structure 2018-07-14 17:23:15 +00:00
3d Simplify calc_rod_corners loops 2017-08-26 19:47:51 +00:00
arch Silence gcc-8 -Wcast-function-type in except.cpp 2018-07-15 04:43:55 +00:00
editor Pass font to gr_string,gr_printf 2018-05-19 23:21:42 +00:00
include Make grs_main_bitmap::grs_main_bitmap() clear the whole structure 2018-07-14 17:23:15 +00:00
main Retain directory structure in New Game dialog 2018-07-03 05:59:40 +00:00
maths Pass vms_matrix &to vms_matrix_from_quaternion 2018-03-31 21:53:01 +00:00
mem
misc Simplify case insensitive lookups 2018-06-13 02:02:58 +00:00
texmap Move various SDL-only texture mapping functions to !DXX_USE_OGL 2017-11-01 02:01:21 +00:00
ui Pass font to gr_string,gr_printf 2018-05-19 23:21:42 +00:00
unittest Add unit tests for valptridx parameter validation 2018-06-17 05:04:38 +00:00