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

2023-05-29 Thread Michael Tokarev
29.05.2023 10:56, 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, e.g.: qemu.git/build/meson-private/tmph74x3p38/testfile

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

2023-05-29 Thread Paolo Bonzini
On 5/29/23 12:24, Peter Maydell wrote: On Mon, 29 May 2023 at 08:58, 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, e.g.:

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

2023-05-29 Thread Peter Maydell
On Mon, 29 May 2023 at 08:58, 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, e.g.: > > qemu.git/build/meson-priva

[PATCH] 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, e.g.: qemu.git/build/meson-private/tmph74x3p38/testfile.c:2:34: \ warning: implicit declaration of