From fb2bba55d3916ab1d515f1a060f19009daf447ed Mon Sep 17 00:00:00 2001 From: Phil Pennock Date: Thu, 3 May 2012 19:20:43 -0700 Subject: [PATCH] Guard loadable module vars with LOOKUP_MODULE_DIR. Fixes compiler complaints about unused variables. --- src/src/drtables.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/src/drtables.c b/src/src/drtables.c index c87e9c23b..06f7e30ed 100644 --- a/src/src/drtables.c +++ b/src/src/drtables.c @@ -489,13 +489,15 @@ extern lookup_module_info cdb_lookup_module_info; void init_lookup_list(void) { +#ifdef LOOKUP_MODULE_DIR DIR *dd; struct dirent *ent; - const pcre *regex_islookupmod = regex_must_compile( - US"\\." DYNLIB_FN_EXT "$", FALSE, TRUE); int countmodules = 0; int moduleerrors = 0; +#endif struct lookupmodulestr *p; + const pcre *regex_islookupmod = regex_must_compile( + US"\\." DYNLIB_FN_EXT "$", FALSE, TRUE); if (lookup_list_init_done) return; -- 2.25.1