Skip to content

gtypemodule: Cast *_init functions to void(*)(void) first

Philip Withnall requested to merge pwithnall/glib:1666-typemodule-casts into master

This is an analogous commit to c1f5e528. The original fix only touched gtype.h and not gtypemodule.h.

The *_init() functions have prototypes incompatible with *InitFunc types they are being cast to. This upsets GCC 8's -Wcast-function-type that's enabled by default with -Wextra.

Let's not have the public header files emit a warning and neutralize it by doing a void(*)(void) cast first.

Signed-off-by: Philip Withnall withnall@endlessm.com

#1666 (closed)

Closes #1666 (closed)

Merge request reports

Loading