From: Kevin P. Fleming Date: Mon, 21 Aug 2006 03:06:41 +0000 (+0000) Subject: don't declare these variables unless needed X-Git-Tag: 1.4.0-beta1~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3c518a70ff946e2618f24c618549ac6d6e18cc9;p=thirdparty%2Fasterisk.git don't declare these variables unless needed git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40751 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/loader.c b/main/loader.c index 709a943d75..25c6c3773b 100644 --- a/main/loader.c +++ b/main/loader.c @@ -660,14 +660,16 @@ static struct load_order_entry *add_to_load_order(const char *resource, struct l int load_modules(void) { struct ast_config *cfg; - struct dirent *dirent; - DIR *dir; struct ast_module *mod; struct load_order_entry *order; struct ast_variable *v; unsigned int load_count; struct load_order load_order; int res = 0; +#if LOADABLE_MODULES + struct dirent *dirent; + DIR *dir; +#endif /* all embedded modules have registered themselves by now */ embedding = 0;