]> git.ipfire.org Git - thirdparty/libvirt.git/commit
m4: disable gcc8 -Wcast-function-type warnings from -Wextra
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 13 Feb 2018 16:40:19 +0000 (16:40 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 16 Feb 2018 14:37:04 +0000 (14:37 +0000)
commit91482930184edaf774bac3b110dfbab0dcf70649
tree7ef1f47a8b10522c7968464888e66b0dc1c58d10
parentf2f4e960601bd8cdbd8e082815caf6940feb599d
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 our event
callbacks. It is possible to silence the warning by first casting
to the generic "void (*)(void)" function prototype, but that is
rather ugly to add throughout libvirt code.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
m4/virt-compile-warnings.m4