From: Florian K. <fk...@so...> - 2025-07-20 08:41:42
|
https://sourceware.org/cgit/valgrind/commit/?id=42a1a2e601dd2860405a3475aeefbdfea144bd58 commit 42a1a2e601dd2860405a3475aeefbdfea144bd58 Author: Florian Krohm <fl...@ei...> Date: Sun Jul 20 08:39:40 2025 +0000 fdleak.h: Mark close_inherited as possible unused because it is. Avoids compiler warning for track_bad.c Diff: --- none/tests/fdleak.h | 1 + 1 file changed, 1 insertion(+) diff --git a/none/tests/fdleak.h b/none/tests/fdleak.h index f0a6eac493..54c4895dba 100644 --- a/none/tests/fdleak.h +++ b/none/tests/fdleak.h @@ -26,6 +26,7 @@ * - For Ubuntu 8.04, see also * https://bugs.launchpad.net/ubuntu/+source/seahorse/+bug/235184 */ +__attribute__((unused)) static void close_inherited (void) { struct stat sb; int i; int max_fds = sysconf (_SC_OPEN_MAX); |