qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2] meson: Avoid implicit declaration of functions


From: Peter Maydell
Subject: Re: [PATCH v2] meson: Avoid implicit declaration of functions
Date: Tue, 30 May 2023 10:30:22 +0100

On Mon, 29 May 2023 at 15:13, Michal Privoznik <mprivozn@redhat.com> wrote:
>
> While detecting a presence of a function via 'cc.links()'
> gives desired result (i.e. detects whether function is present),
> it also produces a warning on systems where the function is not
> present (into meson-log.txt), e.g.:
>
>   qemu.git/build/meson-private/tmph74x3p38/testfile.c:2:34: \
>   warning: implicit declaration of function 'malloc_trim' 
> [-Wimplicit-function-declaration]

You should say why this matters, because in general warnings
in meson-log.txt are normal and expected. The only reason
we care about these particular warnings is because some
downstream distros are parsing logs for 'implicit declaration
of function' warnings as part of the "modern C" transition.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]