
18 Oct
2019
18 Oct
'19
4:40 a.m.
On Fri, Oct 18, 2019 at 10:16:50 +0200, Michal Privoznik wrote:
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> --- m4/virt-compile-warnings.m4 | 1 + 1 file changed, 1 insertion(+)
ACK