gendef: Silence warnings about casting function pointers on GCC 8.

GCC 8 warns about casting between incompatible pointer to functions.
This can be worked around by casting the source pointer to an integer
type before to the destination pointer type.

Signed-off-by: Liu Hao <lh_mouse@126.com>
1 file changed