summaryrefslogtreecommitdiff
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2013-03-26 01:46:39 +0000
committerRussell Bryant <russell@russellbryant.com>2013-03-26 01:46:39 +0000
commit88874a95d70d1994f168d96c0eb119f6f259e72e (patch)
tree8b55c0a3f0176f746d5613942a1bb9320c6d75d0 /channels/chan_skinny.c
parent03047a47b6a8719b6d6f8ee60017c12d830c1bdd (diff)
Suppress compiler warning.
This code caused a compiler warning when --enable-dev-mode was not used. The warning was that this variable was set but not used. That was indeed the case as the only place this is used is as an argument to SKINNY_DEBUG which is compiled out when not in dev mode. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r--channels/chan_skinny.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index f8f532829..6db4bce54 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -6254,12 +6254,14 @@ static int handle_stimulus_message(struct skinny_req *req, struct skinnysession
struct ast_channel *c;
int event;
int instance;
+#ifdef AST_DEVMODE
int callreference;
- /*int res = 0;*/
+ /* This is only used in AST_DEVMODE, as an argument to SKINNY_DEBUG */
+ callreference = letohl(req->data.stimulus.callreference);
+#endif
event = letohl(req->data.stimulus.stimulus);
instance = letohl(req->data.stimulus.stimulusInstance);
- callreference = letohl(req->data.stimulus.callreference);
/* Note that this call should be using the passed in instance and callreference */
sub = find_subchannel_by_instance_reference(d, d->lastlineinstance, d->lastcallreference);