Commit aafc0126 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé

m4: disable gcc8 -Wcast-function-type warnings from -Wextra

The -Wextra flag bundle gained a new warning -Wcast-function-type.
This complains if you cast between two function prototypes where
the number of parameters or their data types are not compatible.
Unfortunately we need such "bad" function casts for glib type
definitions, and various other APIs.
Signed-off-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
parent 15396686
......@@ -71,6 +71,8 @@ AC_DEFUN([LIBVIRT_SANDBOX_COMPILE_WARNINGS],[
# We can't enable this due to horrible spice_usb_device_get_description
# signature
gl_WARN_ADD([-Wno-format-nonliteral])
# We do "bad" function casts all the time
gl_WARN_ADD([-Wno-cast-function-type])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment