]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Suppress compiler warnings
authorJason Parker <jparker@digium.com>
Thu, 21 Sep 2006 22:44:23 +0000 (22:44 +0000)
committerJason Parker <jparker@digium.com>
Thu, 21 Sep 2006 22:44:23 +0000 (22:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43460 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 5ed8344418ac015373fe26b961c1c00ee49b25a7..814769b7a826b0f9d24a0dfdee6c8f2554cdc385 100644 (file)
@@ -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));