]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[slirp] Disable warnings for uncleanly deprecated libslirp functions
authorMichael Brown <mcb30@ipxe.org>
Thu, 12 Feb 2026 15:45:28 +0000 (15:45 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 12 Feb 2026 15:47:32 +0000 (15:47 +0000)
commit6dc991d0789bbebd2ccee9df507c1c57576beff9
tree99642acfb8591fb5d309b520d78adbaed0396b71
parent25429d952d2b82b60e505698512dce0b7aea89d8
[slirp] Disable warnings for uncleanly deprecated libslirp functions

libslirp introduced a new API for constructing polling lists, to
accommodate Windows platforms where a handle descriptor may be too
large for an int.

Older versions of libslirp do not have the new API calls, and the
older API calls were immediately marked as deprecated, with no
overlap.  We would therefore need to use #ifdef and always have some
code that is deliberately not compiled, depending on the version of
libslirp that we find on the user's system.  This is highly
undesirable.

Work around this by disabling the deprecation warning (which is what
libslirp itself does for the portions of its code that necessarily
touch the deprecated functions).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/linux/linux_api.c