diff --git a/meson.build b/meson.build index de9345867..737f8b31a 100644 --- a/meson.build +++ b/meson.build @@ -355,6 +355,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang' # Due to pervasive use of things like GPOINTER_TO_UINT(), we do not support # building with -Wbad-function-cast. '-Wno-bad-function-cast', + '-Wno-cast-function-type', # Due to function casts through (void*) we cannot support -Wpedantic: # https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions. '-Wno-pedantic',