From: Jeff Peeler Date: Mon, 18 Aug 2008 02:05:29 +0000 (+0000) Subject: fix compilation warnings X-Git-Tag: 1.4.22-rc2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbd79d76b24db7535e7ed314bf6186c4c9f8df98;p=thirdparty%2Fasterisk.git fix compilation warnings git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@138516 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 5234b8c201..1de2a342d0 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -10052,7 +10052,10 @@ retry: static int setup_dahdi(int reload); static int dahdi_restart(void) { - int i, j, cancel_code; +#if defined(HAVE_PRI) + int i, j +#endif + int cancel_code; struct dahdi_pvt *p; ast_mutex_lock(&restart_lock);