From c799d0c30fd6dd93c5861afb3b44567e464aa818 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Thu, 14 Mar 2024 08:12:23 +0100 Subject: [PATCH] regtest: un-inline fdleak close_inherited I don't understand why but clang on FreeBSD arm64 seemed to optimize away the 'stat' check. That caused failures due to incorrect duplicate close errors. --- none/tests/fdleak.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/none/tests/fdleak.h b/none/tests/fdleak.h index 6695138a4..f0a6eac49 100644 --- a/none/tests/fdleak.h +++ b/none/tests/fdleak.h @@ -26,7 +26,7 @@ * - For Ubuntu 8.04, see also * https://bugs.launchpad.net/ubuntu/+source/seahorse/+bug/235184 */ -static inline void close_inherited () { +static void close_inherited (void) { struct stat sb; int i; int max_fds = sysconf (_SC_OPEN_MAX); if (max_fds < 0) -- 2.11.4.GIT