From: Florian Krohm Date: Sun, 20 Jul 2025 08:39:40 +0000 (+0000) Subject: fdleak.h: Mark close_inherited as possible unused because it is. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42a1a2e601dd2860405a3475aeefbdfea144bd58;p=thirdparty%2Fvalgrind.git fdleak.h: Mark close_inherited as possible unused because it is. Avoids compiler warning for track_bad.c --- diff --git a/none/tests/fdleak.h b/none/tests/fdleak.h index f0a6eac49..54c4895db 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);