]> git.ipfire.org Git - thirdparty/libvirt.git/commit
m4: Don't suggest attribute malloc
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Oct 2019 08:07:50 +0000 (10:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Oct 2019 08:55:36 +0000 (10:55 +0200)
commit0ad79c1d018af2191f94c802bcf67bcd222611de
tree6518e3b3230a6212899310c1fde445b04f64420a
parent71519d4638e30a7c4f59a9764a7a8e5e8f679eb3
m4: Don't suggest attribute malloc

With glib inclusion, some of its functions have
__attribute__((__malloc__)) which make compiler realize we want
to use the same attribute for some trivial functions of ours. For
instance qemuDomainManagedSavePath(). I don't see any real
benefit into using the attribute, so disable that suggestion.

In fact, wrong use of the attribute may lead to mysterious bugs:

  https://gitlab.gnome.org/GNOME/glib/issues/1465

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
m4/virt-compile-warnings.m4