Re: [PATCH 2/2] m4: Don't suggest attribute malloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  m4/virt-compile-warnings.m4 | 1 +
>  1 file changed, 1 insertion(+)

ACK

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux