On Mon, 29 May 2023 at 15:13, Michal Privoznik <mpriv...@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