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

2023-05-30 Thread Peter Maydell
On Mon, 29 May 2023 at 15:13, Michal Privoznik 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.

[PATCH v2] meson: Avoid implicit declaration of functions

2023-05-29 Thread Michal Privoznik
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: im