summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2006-09-21 22:44:23 +0000
committerJason Parker <jparker@digium.com>2006-09-21 22:44:23 +0000
commit57504cf0f1b75f5cd21f7b4f1a6a41c14c34b86e (patch)
treef0085076a3eba891ac54f58cb3aca783be358b3e
parentf2e34318f89178dea7c1ae5c8815176a4fa75da7 (diff)
Suppress compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_zap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 5ed834441..814769b7a 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -11228,8 +11228,10 @@ static struct ast_cli_entry zap_ss7_cli[] = {
static int unload_module(void)
{
+#if defined(HAVE_PRI) || defined(HAVE_SS7)
int y;
-#ifdef HAVE_PRI
+#endif
+#ifdef HAVE_PRI
for (y = 0; y < NUM_SPANS; y++)
ast_mutex_destroy(&pris[y].lock);
#endif
@@ -12166,7 +12168,9 @@ static int setup_zap(int reload)
static int load_module(void)
{
int res;
- int y,i;
+#if defined(HAVE_PRI) || defined(HAVE_SS7)
+ int y, i;
+#endif
#ifdef HAVE_PRI
memset(pris, 0, sizeof(pris));