From 03abb674dcd2999063c266d329d0bbee0f2664cb Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Mon, 23 Nov 2020 16:06:43 -0600 Subject: [PATCH] =?UTF-8?q?warning:=20unused=20variable=20=E2=80=98fd?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simgear/nasal/gc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/simgear/nasal/gc.c b/simgear/nasal/gc.c index 59e63af0..59f59abb 100644 --- a/simgear/nasal/gc.c +++ b/simgear/nasal/gc.c @@ -195,9 +195,10 @@ static void bottleneck() printf("GC: wait %2d ", global_elapsedUSec()); #endif if(g->waitCount >= g->nThreads - 1) { - int fd = freeDead(); #if GC_DETAIL_DEBUG - printf("--> freedead (%5d) : %5d", fd, global_elapsedUSec()); + printf("--> freedead (%5d) : %5d", freeDead(), global_elapsedUSec()); +#else + freeDead(); #endif if(g->needGC) garbageCollect();