From 5134e8e1ae3a7084e300821410914edcd06d937b Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 5 Sep 2007 14:56:38 +0000 Subject: [PATCH] Fixup unused warnings when running without threads. git-svn-id: file:///svn/unbound/trunk@601 be551aaa-1e26-0410-a405-d3ace91eadb9 --- util/storage/lruhash.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/storage/lruhash.c b/util/storage/lruhash.c index f5c81c853..d73eae313 100644 --- a/util/storage/lruhash.c +++ b/util/storage/lruhash.c @@ -47,6 +47,9 @@ void bin_init(struct lruhash_bin* array, size_t size) { size_t i; +#if !defined(HAVE_PTHREAD) && !defined(HAVE_SOLARIS_THREADS) + (void)array; +#endif for(i=0; isize_mask; +#endif /* so, really, this task could also be threaded, per bin. */ /* LRU list is not changed */ for(i=0; isize; i++)