From: Wouter Wijngaards Date: Wed, 5 Sep 2007 14:56:38 +0000 (+0000) Subject: Fixup unused warnings when running without threads. X-Git-Tag: release-0.5~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5134e8e1ae3a7084e300821410914edcd06d937b;p=thirdparty%2Funbound.git Fixup unused warnings when running without threads. git-svn-id: file:///svn/unbound/trunk@601 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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++)