[exim-cvs] Guard loadable module vars with LOOKUP_MODULE_DIR…

Página Inicial
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Assunto: [exim-cvs] Guard loadable module vars with LOOKUP_MODULE_DIR.
Gitweb: http://git.exim.org/exim.git/commitdiff/fb2bba55d3916ab1d515f1a060f19009daf447ed
Commit:     fb2bba55d3916ab1d515f1a060f19009daf447ed
Parent:     0f5014860e54132a13e4ecc2f7f1859a9f3a971b
Author:     Phil Pennock <pdp@???>
AuthorDate: Thu May 3 19:20:43 2012 -0700
Committer:  Phil Pennock <pdp@???>
CommitDate: Thu May 3 19:20:43 2012 -0700


    Guard loadable module vars with LOOKUP_MODULE_DIR.


    Fixes compiler complaints about unused variables.
---
 src/src/drtables.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/src/src/drtables.c b/src/src/drtables.c
index c87e9c2..06f7e30 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;