]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
fdleak.h: Mark close_inherited as possible unused because it is.
authorFlorian Krohm <flo2030@eich-krohm.de>
Sun, 20 Jul 2025 08:39:40 +0000 (08:39 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Sun, 20 Jul 2025 08:39:40 +0000 (08:39 +0000)
Avoids compiler warning for track_bad.c

none/tests/fdleak.h

index f0a6eac4933de707a4a08c3f0a68f057f2a0fbff..54c4895dba55e69da7bf68321a99ff3aeded91e0 100644 (file)
@@ -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);